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

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

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 16 Jan 2009 00:54:24 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0901160033010.29785@hixie.dreamhostps.com>
On Thu, 15 Jan 2009, Jonas Sicking wrote:
> > On Thu, 17 Jul 2008, Jonas Sicking wrote:
> > > Assuming there is something sane we can all agree on. So far that is not
> > > the case. On both points :)
> > 
> > I think the current text in the spec is pretty reasonable at this point. The
> > main text is here:
> > 
> >    http://www.whatwg.org/specs/web-apps/current-work/#dynamic-changes-to-base-urls
> > 
> > ...and other parts of the spec ensure that the "Otherwise" clause in that
> > section is true (e.g. by carefully defining when a URL is resolved and then
> > not resolving it again in the algorithms).
> 
> Out of curiosity, why make exceptions for hyperlinks here and the cite 
> attribute here? As opposed to for example images and iframes?

Because the "don't do anything special" behavior (not caching the absolute 
URL or anything like that) leads to the following scenario:

   user hovers over link
   UA resolves URL for display
   script changes the base URL
   user clicks link
   UA resolves URL differently for navigation

...leading to the UI not matching what the UA actually does unless the UI 
is updated when the base URL changes. It's only a "should" though, because 
well, if you want your UI to be out of date, it's not critical.

I can make it a "may" if you think "should" is too strong.


> > I haven't yet covered style="" attributes. The problem with CSS is 
> > that there is no clear point at which URLs are resolved... can we say 
> > it happens during parsing, so that the absolute URLs computed for the 
> > first cascade are set once and for all?
> 
> That would work I think.

Right-o. Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 15 January 2009 16:54:24 UTC

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