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

Re: [CSSOM] CSSRule.NAMESPACE_RULE

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 12 Mar 2010 09:59:01 -0500
Message-ID: <4B9A56B5.4020505@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: www-style@w3.org
On 3/12/10 4:03 AM, Anne van Kesteren wrote:
> Anyway, I have changed NAMESPACE_RULE to use constant 8 instead. Having
> said that, I noticed Firefox uses 0 currently.

We use 0 because it's UNKNOWN_RULE and we did not want to pollute the 
enum namespace by making random rules that didn't have values assigned 
use new values that might then get assigned to something else.

> We could use that as well. (0 and 2 can be re-allocated.)

Not sure 2 can really be "reallocated", though I guess the users of this 
stuff are so rare that it shouldn't be too much of a problem. 
Especially if they're smart and using the symbolic names.

-Boris
Received on Friday, 12 March 2010 14:59:56 GMT

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