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

On Thu, Feb 28, 2008 at 1:44 PM, Pawe? Stradomski <pstradomski at gmail.com>
wrote:

> 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
>
Nod to Pawel.  A workaround would be to custom-style your buttons so that
you can match the links to their appearance.  I override default button
patterning completely in my pages for precisely that reason (also so they
fit in the color scheme better).  It's easy enough to style a link in the
same fashion (easiest of all when you have proper inline-block support).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080228/902ef2e5/attachment.htm>

Received on Thursday, 28 February 2008 12:24:18 UTC