W3C home > Mailing lists > Public > www-svg@w3.org > April 2009

Re: Selectors, getElementsByTagName() and camelCase SVG

From: Henri Sivonen <hsivonen@iki.fi>
Date: Fri, 3 Apr 2009 09:58:03 +0300
Cc: HTML WG <public-html@w3.org>, www-svg <www-svg@w3.org>
Message-Id: <E7A21B2E-3462-4F1D-B595-055905A0C05D@iki.fi>
To: Boris Zbarsky <bzbarsky@mit.edu>
On Apr 3, 2009, at 09:50, Henri Sivonen wrote:

> * A close approximation of the outcome (if I guessed your intent  
> correctly) could be achieved with a spec change with fewer  
> implementation changes if it were stipulated in a spec that  
> selectors don't match case-insensitively against HTML nodes but  
> match against HTML nodes after the selector ident has been ASCII- 
> lowercased.


Furthermore, lowercasing the local name on createElementNS still  
wouldn't be enough to hide the actual implementation strategy of the  
appearance of selector case-insensitivity unless the  
createAttributeNode[NS] hole were plugged as well. (The HTML5 spec  
currently plugs the hole, but I think it's weird in principle and  
implementation-wise annoying if assigning an attribute node to an HTML  
element mutates the supposedly immutable internal state of the  
attribute node, which is why I filed http://www.w3.org/Bugs/Public/show_bug.cgi?id=6689 
  .)

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Friday, 3 April 2009 06:58:45 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:42 GMT