|
Posted by Michael Winter on 10/27/19 11:35
On 24/12/2005 21:01, David Dorward wrote:
> Shank wrote:
>
>> Is there any difference between: action="review.asp" and action=""
>> ...?
>
> The former submits to the relative URL "review.asp", the latter isn't
> a URL and the behaviour is undefined [...]
Not so.
Within a representation with a well defined base URI of
http://a/b/c/d;p?q
a relative reference is transformed to its target URI as
follows.
...
"" = "http://a/b/c/d;p?q"
-- 5.4 and 5.4.1, Reference Resolution Examples, RFC 3986
However, I do agree that it's best avoided in production as not all user
agents agree. For example, and as David said, IE will treat empty URIs
in links as "./", though it will act properly for FORM action attributes
with empty values.
Mike
--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Navigation:
[Reply to this message]
|