[uf-dev] <base> and @xml:base

Ryan King ryan at technorati.com
Thu Feb 1 10:10:05 PST 2007


On Jan 31, 2007, at 6:53 PM, Derrick Lyndon Pallas wrote:

> What is the href of the anchor in the following document, which has  
> a base URL of "http://www.example.com/"
>
>  <?xml version="1.0" encoding="UTF-8"?>
>  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>      <head xml:base="bar/" >
>          <title>Confusing</title>
>          <base href="foo/">
>      </head>
>      <body xml:base="../">
>          <a href="link.xml">text</a>
>      </body>
>  </html>
>
> Is it <http://www.example.com/foo/link.xml> or <http:// 
> www.example.com/bar/link.xml>? In other words, how does <base>  
> interact with @xml:base? Is this question outside the scope of this  
> mailing list? ~D


Honestly, I think the right answer is to ignore xml:base. Browsers  
don't implement it interoperably because it isn't specified in XHTML.

I think we should remove the xml:base tests from the suite. (sorry, I  
was the one who put them there)

-ryan
--
Ryan King
ryan at technorati.com





More information about the microformats-dev mailing list