W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > February 2008

Re: Comments on http://www.w3.org/TR/2008/WD-rdfa-syntax-20080221

From: Johannes Koch <koch@w3development.de>
Date: Wed, 27 Feb 2008 18:11:34 +0100
Message-ID: <47C599C6.3050702@w3development.de>
To: public-rdf-in-xhtml-tf@w3.org

Hi Ben

Ben Adida schrieb:
> Johannes Koch wrote:
>> As the type of @about is URIorCURIE, and "" (empty attribute) is no 
>> valid safe CURIE, it will be treated as a URI reference, which is to 
>> be resolved to the current base.
>> So e.g.
>> ""
>> resolved to
>> http://www.example.org/foo/bar
>> results in
>> http://www.example.org/foo/

This is what I get using

   new URI("http://www.example.org/foo/bar").resolve("");

in Java.

> I don't think that's true: if you put <a href="">foo</a> in a document, 
> you get the full URI http://www.example.org/foo/bar as that link.
> I had a similar confusion at some point, that BASE referred to the base 
> *directory*, but in fact all browser behavior (and I believe 
> specifications) imply that a URI value of "" is the full current URI, 
> not just the parent directory.

<http://www.ietf.org/rfc/rfc3986.txt> Page 31 (section 5.2.2):

if (R.path == "") then
                T.path = Base.path;

Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)
Received on Wednesday, 27 February 2008 17:12:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 February 2008 17:12:01 GMT