"Jukka K. Korpela" <> wrote in message
news:Xns95258D0F11872jkorpelacstutfi@193.229.0.31. ..
> brucie <****@usenetshit.info> wrote:
>
> > on the other hand the html specs use rfc1808 so its not really fair to
> > use the updated 2396 as browsers are supposed to follow the html specs.
>
> HTML 4.01 also references RFC 2396 (in normative references), saying:
> "Note that RFC 2396 updates [RFC1738] and [RFC1808]."
So, where does this leave us with our href="#" conundrum?
Yes, the spec clearly refers to rfc1808 where href="#" is invalid and
subject to error recovery by the UA. Nowhere does the spec nor rfc1808 state
what an empty fragment identifier does and this (brucie) is *not* an empty
URI. It is a URI with an invalidly empty fragment identifier.
However, as you say, the spec also references rfc2396 where the fragment
identifier is allowed to be empty, so we have href="#[empty]" being valid.
(the [empty] is my nomenclature, I couldn't think up anything better but it
is different to [undefined] which is also mentioned in rfc2396 as being
invalid: href="#[undefined]" seems to be IHMO to be invalid, one should only
add a # to a URI if one has a "defined" fragment to append thereto).
The two references are contradictory. The normative nature of the second
reference may help us out, being less, well, formative than the first
reference.
In any case (and at risk of being the ubiquitous "onlooker") "They" should
sort this one out. Definitively.
In the meantime I think the browsers have sorted it out for them

What
comes first: the browser or the spec?
--
Cheers
Richard.