[whatwg] Proposal for a link attribute to replace <a href>
Smylers at stripey.com
Wed Jul 30 07:45:20 PDT 2008
Ian Hickson writes:
> ... global href="" attribute for all elements ... Unfortunately, I've
> been told over and over by implementers that a global href="" is a bad
> <div class="ad"
> <article class="teaser"
> onclick="location = this.getElementsByTagName('a')">
> On Thu, 29 May 2008, Frank Hellenkamp wrote:
> > In the best case the whole rectangle of the teaser is clickable. At the
> > it, to get this behavior (see example in my last mail).
> I don't think the JS is a big deal.
Compared to <a href="...">, using onlick events generally provides a
worse user experience, such as the status bar not being updated to
indicate a link's destination in advance of committing to navigate
like the above are the best we can do. But let's not pretend they are
as good as links that don't involve scripting.
More information about the whatwg