W3C home > Mailing lists > Public > public-html@w3.org > June 2007

Re: "placeholder link"

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Mon, 25 Jun 2007 09:19:21 +1000
Message-ID: <467EFBF9.9090000@lachy.id.au>
To: Sander Tekelenburg <st@isoc.nl>
CC: public-html@w3.org

Sander Tekelenburg wrote:
> Btw, the relevant section,
> <http://www.whatwg.org/specs/web-apps/current-work/multipage/section-phrase.html#the-a>,
> doesn't seem to define "placeholder link"; doesn't define what the UA should
> do with it. Surely it should define that UAs should present such content as
> if there is no <a> element present? It would suck for users if such a 'link'
> would be presented as if it is a hyperlink.

That will be addressed in the rendering section, which hasn't been 
written yet.

>> One advantage is that allows to you easily style it differently from the
>> other links, to indicate that it is the current page, without requiring
>> an additional class.  e.g.
>>
>> menu a { /* Styles for current page */ }
>> menu a:link { /* Styles for other links */ }
> 
> nav ul li { /* Styles for current page */ }
> nav ul li a:link { /* Styles for other links */ }

It depends on the design.  The extra a element is often useful as an 
extra hook for styling in practice.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Sunday, 24 June 2007 23:19:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:01 GMT