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

Re: [css3-namespace] 4. CSS Qualified Names

From: Erik Dahlström <ed@opera.com>
Date: Tue, 11 Mar 2008 16:08:46 +0100
To: "L. David Baron" <dbaron@dbaron.org>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.t7uxowshgqiacl@gnorps.palace.opera.no>

On Mon, 10 Mar 2008 18:07:27 +0100, L. David Baron <dbaron@dbaron.org>  
wrote:

> On Monday 2008-03-10 16:58 +0100, Erik Dahlström wrote:
>> http://www.w3.org/TR/2008/WD-css3-namespace-20080215/. Please let us  
>> know
>
>>> Some contexts may allow the use of an asterisk (*, U+002A) as a
>>> wildcard prefix to indicate a name in any namespace, including no
>>> namespace.
>>
>> What exactly does "contexts" mean here? Perhaps an example of a context
>> that allows asterisks, and one that doesn't would make it easier to
>> understand. If this is defined by the host language, please say so
>> explicitly.
>
> It is defined by the host language.  For example, in selectors, the
> wildcard is allowed:
>
>   *|p, q[*|title] /* represents a p element in any namespace
>                      (including none) or a q element in the default
>                      namespace with a title attribute in any
>                      namespace (including none) */
>
> but in the attr function it is not allowed (since it's not clear how
> it would behave if there were more than one attribute to choose
> from):
>
>   p::before {
>     content: attr(title); /* legal declaration */
>     content: attr(*|title); /* syntax error; declaration dropped */
>   }

That's a good example, could that be included in the spec please?

Thanks
/Erik, on behalf of the SVG WG

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Tuesday, 11 March 2008 15:09:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT