|
Posted by Harlan Messinger on July 7, 2005, 1:09 pm
Please log in for more thread options
David Håsäther wrote:
>
>>Is the following a legal URL?
>>
>> http://www.invalid.com/path#
I guess that should be either www.example.com or www.something.invalid.
>
> Yes.
>
>>This underlies my real questions:
>>
>>1. Is <a href="#"> a *valid* (whether or not intentionally) way to
>>go to the top of a page.
>
> AFAIK, the behavior is undefined for empty fragment identifiers. I'm
> not sure though, so you may want to look into RFC 2396 (somewhere
> around section 4 maybe).
Yeah, it still doesn't seem to answer the question.
>>2. Whether or not valid, do the usual browsers actually support
>>this?
>
> IE, Mozilla and Opera does to my knowledge, and I think this is the
> most common behavior for browswers.
I just checked: even Lynx does.
|