[whatwg] Question about DOMImplementation.createHTMLDocument() specifications

Ian Hickson ian at hixie.ch
Mon Jul 1 16:26:07 PDT 2013


On Fri, 10 May 2013, Thomas Fétiveau wrote:
> 
> - The "initial" insertion mode of the tree construction stage specifies to add
> a doctype to the associated document when a doctype token shows up:
> http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#the-initial-insertion-mode
> 
> - However the document object has already been built at this stage and is an
> HTML document, thus created by DOMImplementation.createHTMLDocument().

The document is expected to be created by the implementation directly, not 
using DOMImplementation.createHTMLDocument().

HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list