W3C home > Mailing lists > Public > www-style@w3.org > April 2001

Does :target pseudo-class apply to XML documents?

From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
Date: Sat, 21 Apr 2001 11:39:18 -0700
Message-ID: <3AE1D3D6.8AB8EBDF@metalab.unc.edu>
To: www-style@w3.org
The description of the :target pseudo-class in CSS3 module: W3C
selectors leaves a number of questions open. In particular:

1. Does it only work in HTML where there are well-defined target
attributes, or does it work in XML too? 

2. Why not just use the attribute selectors on target attributes?

3. Is it perhaps because the target selector only works after you've
followed a link from the referring URI to the targetted element?

4. And if that's the case, this might make sense for XML when the URI
links had XPointer fragment identifiers. In which case, this is not so
much about the target as the fragment identifier and perhaps the
pseudo-class should be renamed to make that clearer?

Whatever the answers to these questions are, I think the spec could be a
lot clearer about the intended behavior. 

| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
|               Java I/O (O'Reilly & Associates, 1999)               |
|            http://metalab.unc.edu/javafaq/books/javaio/            |
|   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ | 
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
Received on Saturday, 21 April 2001 11:51:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:57 UTC