Re: [CSSOM] @namespace at-rule proposal

On Tue, 06 Jun 2006 17:02:22 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> Anne van Kesteren wrote:
>> Based on limited testing I believe Mozilla uses CSSUnknownRule for it
>
> Actually, Mozilla just uses CSSRule for the DOM representation of  
> namespace rules (as in, instanceof CSSUnknownRule is false), but .type  
> returns UNKNOWN_RULE for lack of anything better to return (since  
> returning anything else would not be forward-compatible with spec  
> revisions).  We do similar things for some other rules (e.g.  
> @-moz-document).  Perhaps there should be a CUSTOM_RULE value to be  
> returned in such cases?

Yeah, so how about changing UNKNOWN_RULE to CUSTOM_RULE? Is that still  
possible within Mozilla or are all relevant interfaces frozen? (And  
besides that still adding NAMESPACE_RULE as 7 with the relevant interface  
of course.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Wednesday, 7 June 2006 07:55:40 UTC