[whatwg] WF2 - <form action="">

Philip Taylor excors+whatwg at gmail.com
Sat Jun 30 15:49:36 PDT 2007


WF2 says:

  "When the [form element's action] attribute is absent, UAs must act
as if the action attribute was the empty string, which is a relative
URI reference, and would thus point to the current document (or the
specified base URI, if any)."

But: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0D%0A%3Cbase%20href%3D%22http%3A//google.com%22%3E%3Cform%3E%3Cinput%20type%3Dsubmit%3E

In IE7, FF2, FF3, Opera 9.2, it ignores the base URI and always
submits to the current page. In Safari 3, it does take account of the
base URI. In all, <form action=""> does the same as <form>. In all,
<form action="."> does take account of the base URI. Perhaps it would
be sensible to follow the majority.

-- 
Philip Taylor
excors at gmail.com



More information about the whatwg mailing list