W3C home > Mailing lists > Public > www-style@w3.org > March 2010

Re: [CSSOM] CSSRule.NAMESPACE_RULE

From: Stewart Brodie <stewart.brodie@antplc.com>
Date: Fri, 12 Mar 2010 10:28:34 +0000
To: <www-style@w3.org>
Message-ID: <d92f118c3ca03a3e8f17b1f8a1da4d1b9dad9a3e@localhost>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:25 GMT