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

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 UTC