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
Received on Wednesday, 1 April 2009 13:39:50 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:44 UTC