[whatwg] <base> versus xml:base

Anne van Kesteren annevk at opera.com
Wed Mar 14 05:44:37 PDT 2007

On Wed, 14 Mar 2007 10:17:48 +0100, Anne van Kesteren <annevk at opera.com>  
>>> They don't conflict. They are both applied. <base> is the document's  
>>> base URI, and xml:base is the base URI of the element it is applied on.
>> What about:
>>    <base href="http://www.example.org/" xml:base="/bar" />
> I suppose xml:base="" should affect href="". That would make it  
> consistent with
>    <img src="..." xml:base="..."/>
> at least. Interesting sample.

Please ignore the comment above. It would lead to silly loops. <base  
href="">, if relative, should be resolved against the document location  
and not against (any) xml:base.

Anne van Kesteren

More information about the whatwg mailing list