Re: [DOMCore] Comments on tagName case

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 UTC