W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2008

[whatwg] Issues concerning the <base> element and xml:base

From: Jonas Sicking <jonas@sicking.cc>
Date: Sat, 01 Mar 2008 16:20:35 -0800
Message-ID: <47C9F2D3.1020207@sicking.cc>
Anne van Kesteren wrote:
> On Sat, 01 Mar 2008 13:29:41 +0100, Jonas Sicking <jonas at sicking.cc> wrote:
>> Personally it's something I would be very reluctant to do. It would 
>> add a whole lot of code for basically no benefit for web developers. I 
>> have never heard of anyone that actually desired changing the base uri 
>> for all or parts of a page dynamically.
> 
> Note that the new base URI would only take effect once you actually did 
> something with a potentially affected object. For instance, <img> would 
> not start loading a new image if the base URI changes. <img>.src = 
> <img>.getAttribute("src") could start loading a new resource however if 
> the base URI changed since the initial load.

Well, that was my intention with the initial proposal. But Hixie pointed 
out that "did something" is a very hard thing to define. For example on 
a <a href="...">, does the user hovering the node count? Does resizing 
the window count? Does removing the node from the DOM and reinserting it 
count?

/ Jonas
Received on Saturday, 1 March 2008 16:20:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:40 UTC