Re: [selectors] :any-link, :link and :visited should not match HTML's <link>

On 8/12/14, 8:18 PM, Benjamin Poulain wrote:
> In the definition of :any-link (, the text explicitly mentions the elements it matches for HTML5: <a>, <area> and <link>. I donít see why matching <link> is useful in that context since it does not have a visual representation.

By default.  You can render it just fine in practice.  Here's a simple 

   <!DOCTYPE html>
     head,link { display: block }
     link::before { content: attr(href) }
   <link href="">

Of course if you try that testcase you'll see even more behavior 
differences between browsers in terms of whether the <link> is treated 
as a link or not...

> I suggest removing <link> and limiting the 3 selectors to visual content.

Please do note 
for what the HTML spec has to say on the matter.


Received on Wednesday, 13 August 2014 04:06:11 UTC