Re: Hoisting <base> into <head>

On Tue, Sep 7, 2010 at 2:14 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 9/7/10 5:09 PM, Anne van Kesteren wrote:
>> On Tue, 07 Sep 2010 23:03:58 +0200, Adam Barth <w3c@adambarth.com> wrote:
>>>
>>> It seems like the easiest solution is just to allow <base> elements
>>> outside of <head> to override the base URL.
>>
>> Yeah, I thought that would be better too. Just use the first <base>
>> element in the Document. That would also be more similar to how e.g.
>> <title> works and would allow for XML documents not using <head> etc.
>
> This has issues with <base> being injected into the body suddenly affecting
> where scripts load from, no?

That's also true if we hoist the element to the head.

Adam

Received on Tuesday, 7 September 2010 21:31:49 UTC