Re: Selectors, getElementsByTagName() and camelCase SVG

Ian Hickson wrote:
> I haven't changed the HTML5 spec on this issue, since it seems that what 
> the spec says is what people seemed to agree was the desireable behaviour.
> 
> Namely, the method is case-sensitive except for elements in the HTML 
> namespace in HTML documents.

That doesn't sound to me like what was agreed on towards the end there, 
but maybe I misunderstood.  My impression is that for the HTML namespace 
in HTML documents the argument to getElementsByTagName is 
ASCII-lowercased before doing a case-sensitive compare; for everything 
else the original case is used.

-Boris

Received on Friday, 1 May 2009 23:35:02 UTC