Re: [CSS OM] list of issues

On 6/3/11 1:03 AM, Sylvain Galineau wrote:

 > To reiterate, three
> browsers expect pseudoElt to begin with one of two colons.

Gecko expects pseudoElt to begin with two colons and be a pseudo-element 
we know about or be equal to one of the things in this list: ":before", 
":after", ":first-line", ":first-letter".

In other words, it imposes exactly the same constraints that 
http://www.w3.org/TR/css3-selectors/#pseudo-elements does.

Of course Selectors Level 3 no longer defines any pseudo-elements that 
CSS 2.1 doesn't define, so the difference only matters for moz-prefixed 
pseudo-elements.

The other exciting part is how other input is handled:

1) Input starting with a single ':' that is not one of the CSS2.1 
pseudo-elements causes the argument to be ignored altogether (with some 
comments about how throwing an exception would maybe make more sense but 
is not allowed by the DOM spec).

2) Input not starting with ':' is ignored.

3) Input starting with '::' that is not a known pseudo-element throws an 
out-of-memory exception, as mentioned earlier.  This seems like a bug.

-Boris

Received on Friday, 3 June 2011 05:30:36 UTC