- From: Anne van Kesteren <annevk@opera.com>
- Date: Tue, 06 Jun 2006 13:51:01 +0200
- To: www-style@w3.org
Even though http://www.w3.org/1999/06/25/WD-css3-namespace-19990625/ is still marked as a proposal I think everyone agreed upon as it the way to go and there are implementations in Mozilla, Safari and Opera of it. However, there is no CSS object model representation of it though because DOM Level 2 Style was written at the time of CSS 2.0 I guess. Based on limited testing I believe Mozilla uses CSSUnknownRule for it which is actually obsoleted http://www.w3.org/mid/Pine.LNX.4.05.10310302134070.1173-100000@lanalana.inria.fr but I guess they are using it as some kind of catch all for all at rules that are not in a standard but are supported anyway. For @namespace I propose CSSRule is extended with `const unsigned short NAMESPACE_RULE = 7;` and a new interface is used for the rule itself: interface CSSNamespaceRule : CSSRule { attribute DOMString namespace; readonly attribute DOMString prefix; }; The namespace DOM attribute represents the URI given with url(). The url() "function" syntax must not be part of the value etc. The prefix DOM attribute either is the prefix given or the empty string. Not sure about any exceptions that might need to be thrown. -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>
Received on Tuesday, 6 June 2006 11:51:36 UTC