[CSSOM] selectorText attribute

The selectorText DOM attribute of the CSSStyleRule interface  
http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSStyleRule-selectorText  
is somewhat underdefined in my opinion. Or perhaps the definition is quite  
good, but it's not clear what you can expect. Besides, browser  
implementations seem to do different things. In text/html documents a  
selector like 'html body' might end up as 'HTML BODY' in Safari's  
implementation or 'html *' ends up as '*|html *|*' in Mozilla's  
implementation. Things like 'HTML > BODY' become 'HTML>BODY' (ok per the  
specification), but it's not entirely clear what the exact algorithm to  
follow is.

It would be nice if the next revision, or perhaps some agreed upon  
algorithm between different vendors is created, so that interoperability  
becomes better and we don't have to reverse engineer each other ;-)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Tuesday, 6 June 2006 11:51:37 UTC