Re: [CSSOM] CSSRule.NAMESPACE_RULE

Daniel Glazman <daniel.glazman@disruptive-innovations.com> wrote:

> Le 12/03/10 10:03, Anne van Kesteren a écrit :
> 
> > Anyway, I have changed NAMESPACE_RULE to use constant 8 instead. Having
> > said that, I noticed Firefox uses 0 currently. We could use that as
> > well. (0 and 2 can be re-allocated.)
> 
> Please do _not_ use 0. 0 is for UnknownRules. I am perfectly aware that
> browsers that don't implement something throw it away so the rule never
> reaches the stage where an UnknownRule is created. But think of a filter
> trying to preserve everything in a stylesheet or an editor (hum:-)
> trying to preserve all the rules the web author created. UnknownRules
> is then needed. FWIW, I have an implementation of a CSS parser
> creating UnknownRules...

And please don't re-use 2 either without providing a justification for
deliberately breaking backwards compatibility that explains how such a
change improves UA interoperability.


-- 
Stewart Brodie
Team Leader - ANT Galio Browser
ANT Software Limited

Received on Friday, 12 March 2010 10:29:10 UTC