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

Re: Selectors, getElementsByTagName() and camelCase SVG

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 01 Apr 2009 11:41:52 -0700
Cc: HTML WG <public-html@w3.org>, www-svg <www-svg@w3.org>
Message-id: <E4744C41-D8F3-4396-A395-6552572F0BF5@apple.com>
To: Henri Sivonen <hsivonen@iki.fi>

On Apr 1, 2009, at 6:39 AM, Henri Sivonen wrote:

> Gecko and WebKit (but not Opera, it seems) lower-case the  
> getElementByTagName() argument in text/html and element selectors in  
> style sheets that apply to text/html. Making the comparisons  
> actually case-sensitive seems bad at least in the context of Gecko.

How about making the comparisons actually case-*in*sensitive?

> This means that unless getElementByTagName() and the CSS parser also  
> use the magic camelCase list, it's impossible to use element  
> selectors or getElementByTagName() on SVG elements with camelCase  
> names.
>
> The spec should probably prescribe the camelCase list to be used for  
> getElementByTagName() and the CSS parser. However, those lack the  
> context the HTML parser has, so textArea can't be put on the list.


Regards,
Maciej
Received on Wednesday, 1 April 2009 18:42:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:33 GMT