> (I don't know which way is CSS/CSSOM standard) Looking at DOM 2 Style and CSSOM, still don't know if there even is a standard way. Mozilla toLowerCases element names in selectorText in XML style while IE toUpperCases them in HTML style. But in both cases they are munging what should be a plain string (DOMString) that, as long as it follows CSS syntax, doesn't have any better/canonical representation (even if it locates elements whose names have standard representation, it is itself just a string).
People consider IE to be broken because it is different from the rest, but it seems to me browsers would ideally be case-preserving on this if anything, no? Or can someone find the confirmation that toLowerCase is a firm standard? I even see PPK saying "Use selectorText.toLowerCase() for all your comparisons" [1], which is clearly wrong as it forgets that crucial parts of the selector *aside* from the type selector *are* case-sensitive. -- Sandy [1] http://www.quirksmode.org/dom/w3c_css.html#properties
