[cssom] serializing Selectors

For the CSSOM specification I want to define how you go from a group of  
selectors to a string. This is straightforward for quite a few things, but  
when it comes to type and attribute selectors it seems implementations do  
wildly different things. E.g.

   [*|ATTR]

ends up as

   [attr] in Firefox and Opera and
   [*|attr] in WebKit

for a text/html resource. Neither seems ideal.

Some of this is probably the result of the underlying implementation  
details of matching in text/html resources.

If you guys have any input as to what would be best here that'd be much  
appreciated.

The work on this happens here at the moment:

   http://dev.w3.org/csswg/cssom/#selectors

Specifically it is about what CSSStyleRule.selectorText has to return and  
other theoretical APIs that return a group of selectors as string we may  
introduce in the future.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Monday, 19 October 2009 11:48:20 UTC