W3C home > Mailing lists > Public > public-html@w3.org > April 2009

Re: Selectors, getElementsByTagName() and camelCase SVG

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 15 Apr 2009 14:07:31 -0400
Message-ID: <49E62263.70704@mit.edu>
To: "L. David Baron" <dbaron@dbaron.org>
CC: HTML WG <public-html@w3.org>, www-svg <www-svg@w3.org>
L. David Baron wrote:
> This has the disadvantage that it makes XHTML (in XML) partially
> case-insensitive.

I'm not sure I follow that.  All the behavior discussed here only 
applies to HTML documents.  In XML documents, all the matching is 
case-sensitive.  At least as the spec is currently written, and in all 
the proposals in this thread.

>  * assuming DOM nodes have an internal notion of whether they're
>    case sensitive (which would be true for anything other than DOM
>    nodes in text/html that are in the HTML namespace)
> 
>  * replacing "Have the HTML namespace" in step 2a above with "are
>    not case sensitive"

This seems to be equivalent to the other approach, a far as I can tell 
(though it might be clearer conceptually).

One difference is how adoptNode is handled; with your proposal this 
would need to change the internal notion of case-sensitivity to give the 
same behavior as the other proposal, right?

-Boris
Received on Wednesday, 15 April 2009 18:09:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:02 UTC