W3C home > Mailing lists > Public > www-style@w3.org > July 2003

attr() construct in generated content and namespaces

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 26 Jul 2003 22:57:27 -0500
Message-ID: <3F234DA7.8000702@mit.edu>
To: www-style@w3.org

How exactly does the attr() construct work in the presence of namespaced 
attributes?  For example, what is the expected rendering of:

<div xmlns:xlink="whatever"
      xmlns:myNS="somethingElse"
      xlink:type="convoluted"
      myNS:type="confusing"
      type="confounding" />

styled with:

div::before { content: attr(type) }

?

Or in other words, what is it that goes between the parentheses of 
attr()?  The CSS2(.1) spec if pretty vague on this, saying that it's a 
"string that is not parsed by the CSS parser", but CSS2 is generally not 
namespace-aware...

-Boris
Received on Saturday, 26 July 2003 23:57:29 GMT

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