W3C home > Mailing lists > Public > public-webapi@w3.org > April 2008

Re: [selectors-api] Handling :link and :visited Pseudo Classes

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 16 Apr 2008 19:02:33 -0500
Message-ID: <48069399.9000800@mit.edu>
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
CC: public-webapi <public-webapi@w3.org>

Lachlan Hunt wrote:
> In (X)HTML, I believe :link should be equivalent to:
> 
>   "a[href], area[href], link[href]"

This is certainly not the case in all UAs.  For example,

  <a href="http://words words words">

does not match :link in Gecko, since that attribute value cannot be parsed as a 
URI (spaced not allowed in hostnames).

Similarly,

   data:text/html,<a href="test">

is not a :link, since you can't resolve a relative URI if the base is a data: 
URI.  There are various other cases.

Basically, something should match :link if it acts like a link...

-Boris
Received on Thursday, 17 April 2008 00:03:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 17 April 2008 00:03:26 GMT