Selectors, getElementsByTagName() and camelCase SVG

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.

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.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Wednesday, 1 April 2009 13:39:48 UTC