W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2008

[whatwg] Proposal for a link attribute to replace <a href>

From: Paweł Stradomski <pstradomski@gmail.com>
Date: Thu, 28 Feb 2008 15:26:28 +0100
Message-ID: <200802281526.28678.pstradomski@gmail.com>
W li?cie Shannon z dnia czwartek 28 lutego 2008:
> FAQ:      * It adds no new functionality that can't already be achieved
> using the a element.
> Absolutely not true. A global attribute offers several features that <a>
> does not - most importantly nested links and the ability to hyperlink
> block and interactive elements without breaking validation.
In my opinion this would be an important problem. How should nested links 
work? Suppose I put href="http://a" on <p> element and href="http://b" on a 
<span> inside that <p>. What should happen when the user clicks on that 
<span>? That's the reason why nested <a>'s are forbidden by HTML 4 and

I'm not against href on every element, but then nesting elements with href 
attribute should be forbidden. Similarly href should be forbidden on 
interactive elements (buttons etc.), so making it global would be a problem.

Pawe? Stradomski
Received on Thursday, 28 February 2008 06:26:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:00 UTC