[whatwg] HTMLness bit on script-created documents
mjs at apple.com
Thu Oct 8 07:01:54 PDT 2009
On Oct 8, 2009, at 4:37 AM, Henri Sivonen wrote:
> 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:
> WebKit and Opera don't implement this behavior and always return a
> Document that doesn't have the HTMLness bit set.
This implies that it's not necessary to ever set the HTMLness bit from
createDocument to pass Acid3.
I believe it's only necessary to make XHTML 1.0 documents implement
the HTMLDocument interface, which is justified by DOM2 HTML. That is
what WebKit does, although in a hamfisted and possibly wrong way. Our
plan is to eventually do the HTML5 thing and support all FooDocument
interfaces on all documents.
More information about the whatwg