Re: "placeholder link"

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 UTC