W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2007

[whatwg] getElementsByClassName case sensitivity

From: David Smith <catfish.man@gmail.com>
Date: Sun, 9 Dec 2007 17:38:33 -0800
Message-ID: <AA7EA371-4768-4D80-8F20-D2B7D1A1E42D@gmail.com>
	Currently getElementsByClassName is specified as always being case  
sensitive. This would be fine, except that the primary other use of  
html class names (CSS selector matching) is only case sensitive in  
"standards mode". This leads to situations like http://dscoder.com/getelementsbyclassname.html 
  in which CSS and getElementsByClassName match different results,  
which I think is a rather unintuitive behavior. For this reason, I'd  
like to propose that the case insensitivity quirk for class name  
matching be maintained in getElementsByClassName. So far I've spoken  
to people on the Opera, Firefox, and WebKit teams, and gotten  
responses ranging from agreement to (paraphrasing) "I don't think it  
matters, but I'll implement whichever way the spec ends up", so  
hopefully this won't be a particularly controversial change to make.

						David Smith
Received on Sunday, 9 December 2007 17:38:33 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:59 UTC