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

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 UTC