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

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

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 10 Mar 2008 10:07:27 -0700
To: Erik Dahlström <ed@opera.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <20080310170727.GB19332@ridley.dbaron.org>

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

  p::before {
    content: attr(title); /* legal declaration */
    content: attr(*|title); /* syntax error; declaration dropped */


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Monday, 10 March 2008 17:08:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:34 UTC