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

Re: [DOMCore] Comments on tagName case

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 07 Jul 2011 12:02:57 -0400
Message-ID: <4E15D8B1.7050009@mit.edu>
To: www-dom@w3.org
On 7/7/11 11:45 AM, João Eiras wrote:
> This needs an extra condition.
>
> a) If the document was parsed as html, then the rule should be used as written.
> b) If the document was parsed as xml, then case sensitivity is
> mandatory, as parsed from the original document.

The definition of "HTML Document" used here is found at 
http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#html-document

The place where "is an HTML document" flag is set is on of the following:

1) createHTMLDocument() method
2) The steps in 
http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#read-html 
(which happen only for text/html).

So I think the spec is correct as written...

-Boris
Received on Thursday, 7 July 2011 16:03:25 GMT

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