On Fri, 22 Dec 2006 18:38:33 +0100, Geoffrey Sneddon <[EMAIL PROTECTED]> wrote:
If we come across something like: "<description type="html"><![CDATA [<base url="http://example.com/"><a href="test.html">Test Link</a>]] ></description>",
Yikes!
I assume the link should point to <http://example.com/test.html>, due to the <base> element? I assume, likewise, that <base> would take precedence over xml:base, as it is directly within the content.
Like James Holderness wrote, the <base> element has no place in an HTML fragment, so its meaning is (although most browsers wrongfully supports its presence anywhere in an HTML document) unspecified. The correct base URI to use here is the closest xml:base in the ancestor vector or the document's base URI.
What's the use case for not using xml:base here? -- Asbjørn Ulsberg -=|=- http://virtuelvis.com/quark/ «He's a loathsome offensive brute, yet I can't look away»