Re: Selectors, getElementsByTagName() and camelCase SVG

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 UTC