W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

[whatwg] href synonyms?

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 28 Apr 2011 19:44:50 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1104281942540.19153@ps20323.dreamhostps.com>
On Thu, 9 Dec 2010, Roger H?gensen wrote:
>
> This has irked me lately...
> 
>    * <a> uses /href/ (outbound)
>    * <link> uses /href/ (inbound and outbound)
>    * <img> uses /src/ (inbound)
>    * <iframe> uses /src/ (inbound)
>    * <script> uses /src/ (inbound)
>    * <embed> uses /src/ (inbound)
>    * <object> uses /data/ (inbound)
>    * <applet> uses /code/ (inbound)
>    *   css @import (inbound)
>    * I'm sure I missed some more that should be listed here too.
> 
> It seems like in all cases these are simply a URI, and whether it takes 
> you to some place or if it loads in something is purely contextual. So 
> why not spec all those to simply be synonyms for href (which is used 
> both for inbound and outbound).

Because that would add extra complexity to browsers and the spec without 
really simplifying the language much (since authors would still have to 
know about the synonyms to be able to edit older pages or pages written by 
other people).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 28 April 2011 12:44:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT