- From: Henri Sivonen <hsivonen@iki.fi>
- Date: Thu, 8 Oct 2009 14:37:22 +0300
- To: whatwg List <whatwg@whatwg.org>, www-dom@w3.org
In reference to https://bugzilla.mozilla.org/show_bug.cgi?id=520969: Gecko currently looks at the doctype passed to createDocument() in order to decide what interfaces to offer on the returned document and in order to determine if the HTMLness bit gets set. This behavior was added for Acid3 https://bugzilla.mozilla.org/show_bug.cgi?id=450160 and is endorsed by a "may" statement in DOM Level 3 Core: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-DOM-createDocument WebKit and Opera don't implement this behavior and always return a Document that doesn't have the HTMLness bit set. DOM Level 3 Core mentions that DOM Level 2 HTML specifies a method called createHTMLDocument(). I see such a method in DOM Level 2 HTML CR http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/html.html but I don't see it in the REC http://www.w3.org/TR/DOM-Level-2-HTML/ html.html. Gecko doesn't implement this method but Opera and WebKit do. Hixie: Is there a reason why HTML5 doesn't mention createHTMLDocument()? Does HTML5 contradict the DOM Level 3 Core "may" about createDocument() on purpose? -- Henri Sivonen hsivonen@iki.fi http://hsivonen.iki.fi/
Received on Thursday, 8 October 2009 11:37:59 UTC