W3C home > Mailing lists > Public > www-style@w3.org > June 2006

[CSSOM] selectorText attribute

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 06 Jun 2006 13:51:21 +0200
To: www-style@w3.org
Message-ID: <op.tap26bmv64w2qv@id-c0020.oslo.opera.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:45 GMT