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

[whatwg] Proposal: Extension to the base element

From: Marius Gundersen <gundersen@gmail.com>
Date: Mon, 9 Nov 2009 22:26:34 +1100
Message-ID: <45f4181c0911090326v1d303240mbc001a0e57ff80a6@mail.gmail.com>
One problem with the first proposal is that you don't know the mimetype of
the content before you load it. Just because it ends in .gif does not mean
it is a gif file (eg, using GD a .php file could be a GIF image).

Instead of using class, maybe the rel attribute would fit better.

Marius Gundersen

On Mon, Nov 9, 2009 at 8:43 PM, Fabian Freiburg
<f.freiburg at googlemail.com>wrote:

> Dear list!
> I've never used a list before and I've never posted a proposal, so please
> be patient with me if I'm doing something wrong.
> 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.
> There are different ways to implement this feature: One idea is to use a
> "content" or "type" attribute, where the MIME type to which the "base"
> belongs can be defined. For example the following "base" would affect all
> GIF images:
> <base href="http://example.com/media/images/" type="image/gif">
> Another idea is to use some kind of tagging, which would mean more
> flexibility. For example:
> <base href="http://example.com/media/images/" class="images cdn gif">
> Each element using one of the classes will belong to the relevant "base"
> element.
> Please let me know what you think about it.
> Regards,
> Fabian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20091109/38a61f1c/attachment.htm>
Received on Monday, 9 November 2009 03:26:34 UTC

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