[html5] r2377 - [e] (0) Clarify that processing of action='' (empty) is wrong per RFC3986. (cred [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 28 17:56:53 PDT 2008


Author: ianh
Date: 2008-10-28 17:56:52 -0700 (Tue, 28 Oct 2008)
New Revision: 2377

Modified:
   index
   source
Log:
[e] (0) Clarify that processing of action='' (empty) is wrong per RFC3986. (credit: tb)

Modified: index
===================================================================
--- index	2008-10-29 00:44:23 UTC (rev 2376)
+++ index	2008-10-29 00:56:52 UTC (rev 2377)
@@ -27973,12 +27973,23 @@
 
    <li><p>Let <var title="">action</var> be the <var title="">submitter</var> element's <a href=#concept-fs-action title=concept-fs-action>action</a>.</li>
 
-   <li><p>If <var title="">action</var> is the empty string, let <var title="">action</var> be <span>the document's address</span><!--
-   XXXDOCURL -->.</p> <!-- Don't ask me why. But that's what IE
-   does. It even treats action="" differently from action=" " or
-   action="#" (the latter two resolve to the base URL, the first one
-   resolves to the doc URL) -->
+   <li>
 
+    <p>If <var title="">action</var> is the empty string, let <var title="">action</var> be <span>the document's address</span><!--
+    XXXDOCURL -->.</p>
+
+    <p class=note>This step is a willful violation of RFC 3986. <a href=#refsRFC3986>[RFC3986]</a></p>
+
+    <!-- Don't ask me why. But that's what IE does. It even treats
+    action="" differently from action=" " or action="#" (the latter
+    two resolve to the base URL, the first one resolves to the doc
+    URL). And other browsers concur. It is even required, see e.g.
+      http://bugs.webkit.org/show_bug.cgi?id=7763
+      https://bugzilla.mozilla.org/show_bug.cgi?id=297761
+    -->
+
+   </li>
+
    <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the
    <a href=#url>URL</a> <var title="">action</var>. If this fails, abort
    these steps.</li>

Modified: source
===================================================================
--- source	2008-10-29 00:44:23 UTC (rev 2376)
+++ source	2008-10-29 00:56:52 UTC (rev 2377)
@@ -31512,13 +31512,25 @@
    title="">submitter</var> element's <span
    title="concept-fs-action">action</span>.</p></li>
 
-   <li><p>If <var title="">action</var> is the empty string, let <var
-   title="">action</var> be <span>the document's address</span><!--
-   XXXDOCURL -->.</p> <!-- Don't ask me why. But that's what IE
-   does. It even treats action="" differently from action=" " or
-   action="#" (the latter two resolve to the base URL, the first one
-   resolves to the doc URL) -->
+   <li>
 
+    <p>If <var title="">action</var> is the empty string, let <var
+    title="">action</var> be <span>the document's address</span><!--
+    XXXDOCURL -->.</p>
+
+    <p class="note">This step is a willful violation of RFC 3986. <a
+    href="#refsRFC3986">[RFC3986]</a></p>
+
+    <!-- Don't ask me why. But that's what IE does. It even treats
+    action="" differently from action=" " or action="#" (the latter
+    two resolve to the base URL, the first one resolves to the doc
+    URL). And other browsers concur. It is even required, see e.g.
+      http://bugs.webkit.org/show_bug.cgi?id=7763
+      https://bugzilla.mozilla.org/show_bug.cgi?id=297761
+    -->
+
+   </li>
+
    <li><p><span title="resolve a url">Resolve</span> the
    <span>URL</span> <var title="">action</var>. If this fails, abort
    these steps.</p></li>




More information about the Commit-Watchers mailing list