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 20:44:29 +0100
Message-ID: <200802282044.29756.pstradomski@gmail.com>
W li?cie Robert O'Rourke z dnia czwartek 28 lutego 2008:
> Pawe? Stradomski wrote:
> <div class="steps">
> 	<input href="/basket.html" class="basket-step" value="Basket" />
> 	<input href="/checkout.html" class="current checkout-step"
> value="Checkout" /> <input type="submit" class="confirm-step"
> value="Confirm" />
> 	<input type="button" disabled="disabled" class="payment-step"
> value="Payment" /> </div>
> If I could use one (or at least fewer types) of elements it would make
> cross-browser styling easier. 
You're breaking element semantics here. <input>s are for form input elements - 
text fields, checboxes etc. The above would make those inputs text fields, as 
you didn't spcify the type. Now how can an input be a link? It's supposed to 
accept user text, not to point to some other resource. Activating an input 
(by clicking on it etc.) should just make it start accepting typed text, not 
make the browser jump somewhere else.

Presentation/style should follow the semantics, not the other way round.

After more thinking I lean towards Krzysztof's point of view, href as global 
attribute is a bad idea. I guess it's in the FAQ for a purpose, so EOT for me 
(of course I'll accept and respond to off-list e-mails).

Pawe? Stradomski
Received on Thursday, 28 February 2008 11:44:29 UTC

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