[whatwg] Incorrect declaration of the default namespace in user agent CSS

Ian Hickson ian at hixie.ch
Sun Apr 19 13:28:35 PDT 2009


On Sun, 19 Apr 2009, Sergey Ilinsky wrote:
>
> In the "10.2 The CSS user agent style sheet and presentational hints"
> 
> The declaration of the default namespace (to be applied to names that have no
> explicit namespace component) is incorrect:
> @namespace url(http://www.w3.org/1999/xhtml);
> 
> Correct one should look like [1]:
> @namespace "http://www.w3.org/1999/xhtml";
> 
> [1] http://www.w3.org/TR/css3-namespace/#declaration

As noted in the next section of that draft ("3.1 Syntax"), the use of the 
url() form is just as valid as the string form:

# namespace
#   : NAMESPACE_SYM S* [namespace_prefix S*]? [STRING|URI] S* ';' S*

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list