Sjoerd Visscher wrote:
Tim Bray wrote:
On Jul 16, 2005, at 1:28 PM, Sam Ruby wrote:
I didn't realize that "path-empty" was a valid URI-reference.
Yeah, it means "here".
And that's why you can't use it as a reference to your site.
To quote from RFC 3986:
When a URI reference refers to a URI that is, aside from its fragment
component (if any), identical to the base URI (Section 5.1), that
reference is called a "same-document" reference. The most frequent
examples of same-document references are relative references that are
empty or include only the number sign ("#") separator followed by a
fragment identifier.
When a same-document reference is dereferenced for a retrieval
action, the target of that reference is defined to be within the same
entity (representation, document, or message) as the reference;
therefore, a dereference should not result in a new retrieval action.
So, <link href='' /> links to the atom file (as currently in memory),
not your site.
This is how the feedvalidator evolves.
It is highly unlikely that "here" is what a person intends as an
"alternate". Instead, something like the following might be more
appropriate.
<link href="."/>
On the other hand, "here" is *exactly* what a person should be intending
as "self".
<link href="" rel="self"/>
... however, that completely and utterly misses the point of the use
case that rel="self" was intended for (subscription given only the
content of a feed), UNLESS xml:base is explicitly specified and resolves
to a fully qualified URI.
Both of these cases merit warnings, IMHO.
Please consider updating http://intertwingly.net/wiki/pie/FormatTests
with these and any other situations worth warning people about.
- Sam Ruby