- From: Maciej Stachowiak <mjs@apple.com>
- Date: Thu, 08 Oct 2009 07:01:54 -0700
- To: Henri Sivonen <hsivonen@iki.fi>
- Cc: whatwg List <whatwg@whatwg.org>, www-dom@w3.org
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: > 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. 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. Regards, Maciej
Received on Thursday, 8 October 2009 14:02:51 UTC