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

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

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 17 Apr 2008 01:16:30 +0200
Message-ID: <480688CE.4030806@lachy.id.au>
To: Travis Leithead <travil@windows.microsoft.com>
Cc: public-webapi <public-webapi@w3.org>

Travis Leithead wrote:
>>> what is wrong with treating all links as unvisited as far as
>>> these APIs are concerned.
> 
> This is the alternate option I'd prefer, if you insist on changing 
> the spec in this way. However, my first choice would be to not alter
> the spec :)

I only want to alter the spec to prevent loopholes that allow for major 
interoperability issues.

> To recap your proposal: * :link - matches all links (essentially 
> document.links, but without the href constraint) whether visited or
> not

In (X)HTML, I believe :link should be equivalent to:

   "a[href], area[href], link[href]"

>  * :visited - matches none.
> 
> Is that correct?

Yes.  Any solution is fine with the condition that every link in the 
document is matched by either one of :link or :visited.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Wednesday, 16 April 2008 23:40:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 April 2008 23:40:51 GMT