W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2009

Re: [whatwg] HTMLness bit on script-created documents

From: Maciej Stachowiak <mjs@apple.com>
Date: Thu, 08 Oct 2009 07:01:54 -0700
Cc: whatwg List <whatwg@whatwg.org>, www-dom@w3.org
Message-id: <1B2FEB59-AF53-4724-9CFF-B42A471DF495@apple.com>
To: Henri Sivonen <hsivonen@iki.fi>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:03 GMT