W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] Proposal: Extension to the base element

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 10 Dec 2009 15:01:59 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0912101458540.29336@hixie.dreamhostps.com>
On Mon, 9 Nov 2009, Fabian Freiburg wrote:
> The "base" element is very helpful. Trouble is that it affects all 
> relative links and "src" attributes. Especially for the "src" attributes 
> it would be very useful if it could define a context or media type to 
> which it belongs. With this it would be possible to define a "base" URI 
> fore. g.  images, javascripts or stylesheets. Furthermore it would be 
> very easy to use a CDN for serving static media files. There are 
> probably some more advantages.

It's not exactly clear to me what problem this is solving. Isn't giving 
absolute URLs pretty straight-forward?

It seems that anyone who is using a CDN wouldn't have any trouble just 
generating the absolute URLs dynamically using server-side scripting or 
templating, making this unnecessary on the client.

Note that in general the process for proposing new features is as 
described here:


Should you wish to persue this idea, I recommend following the steps 
described above.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 10 December 2009 07:01:59 UTC

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