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  
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
Received on Tuesday, 6 June 2006 11:51:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:24 UTC