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

[whatwg] Proposal: Extension to the base element

From: Chris Taylor <Chris.Taylor@figureout.com>
Date: Mon, 9 Nov 2009 15:42:57 +0000
Message-ID: <7805560CD71B3B4793F5FDBCDE22E52B1A52500130@tpexmb01>
David Workman said:
> I'd suggest using an attribute over a type specifier too. Not
> only does it have the problem Marius spotted, but if you
> specified a type attribute then you have much more difficulty
> displaying content of the same type from both a CDN and dynamic
> user content in the same page (such as in a social networking
> site, displaying user-uploaded images from one location and
> the static images for the site layout from a CDN).
>
> Other than that, I think this would be a good addition that
> would make <base> much more usable in dynamic sites.

David, can you clarify what you mean by attribute, please? Do you mean an attribute on each element to specify which <base> it is to reference? Like this pseudo-code:

<base href="http://cdn.provider.com/" id="cdn">

<base href="http://www.mysite.com/images/" id="images">

<base href="http://youtube.com/" id="video">

<img src="image-from-cdn.jpg" base="cdn" alt="Image from CDN">

<img src="image-from-mysite.jpg" base=" images " alt="Image from mysite.com">

<video src="video1234.mpg" base="cdn" alt="Video from YouTube">

Or do you mean something else? Apologies for sounding dim, my brain is on strike today.

Chris


This message has been scanned for malware by SurfControl plc. www.surfcontrol.com
Received on Monday, 9 November 2009 07:42:57 UTC

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