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"
      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 

Received on Saturday, 26 July 2003 23:57:29 UTC

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