W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2011

Re: [DOMCore] createElement() and HTML-specific element interfaces

From: David Flanagan <dflanagan@mozilla.com>
Date: Wed, 10 Aug 2011 07:28:28 -0700
Message-ID: <4E42958C.6090605@mozilla.com>
To: Ms2ger <ms2ger@gmail.com>
CC: Ian Hickson <ian@hixie.ch>, www-dom@w3.org
On 8/10/11 1:57 AM, Ms2ger wrote:
> On 08/10/2011 12:33 AM, Ian Hickson wrote:
>> On Tue, 9 Aug 2011, David Flanagan wrote:
>>>
>>> Still, I think it would be helpful if the DOM spec changed the html 
>>> flag
>>> into two distinct internal properties: caseSensitive and
>>> allowsProcessingInstructions.  Documents created with createDocument()
>>> are case sensitive and allow PIs.  Documents created with
>>> createHTMLDocument() are not.
>>
>> There are far more differences. For example,<noscript>  is allowed in 
>> HTML
>> Documents but not XML Documents.
>
Sorry: those were the only two uses of the HTML flag in the DOM spec... 
I should have thought to check for uses in HTML as well.

> Indeed. Also, having two flags would suggest that one could be set 
> while the other isn't, and that would, I think, lead to more confusion.
>
I thought you might be willing to put up with two linked flags if the 
benefit was that the DOM spec didn't have to say anything about which 
documents are HTML and which are not, since the HTML spec blurs the 
distinction anyway.

As I said earlier, if HTML changes to use "partial interface Document" 
instead of "Document implements HTMLDocument" that will solve the 
problem because then all documents implement Document and some of them 
are also flagged as HTML documents.  Unlike now when all documents 
implement HTML document, but only some of them are actually HTML documents.

     David

> Ms2ger
Received on Wednesday, 10 August 2011 14:28:59 GMT

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