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

Selectors, getElementsByTagName() and camelCase SVG

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 1 Apr 2009 16:39:02 +0300
Message-Id: <2E216A7B-066B-4996-91FE-562CA633F9C5@iki.fi>
To: HTML WG <public-html@w3.org>
Cc: www-svg <www-svg@w3.org>
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:50 GMT

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