Re: [CSSOM] @namespace at-rule proposal

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?

-Boris

Received on Tuesday, 6 June 2006 15:02:30 UTC