Skip to content

Commit

Permalink
[e] (0) Clarify that processing of action='' (empty) is wrong per RFC…
Browse files Browse the repository at this point in the history
…3986. (credit: tb)

git-svn-id: http://svn.whatwg.org/webapps@2377 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 29, 2008
1 parent 8c3845d commit 7c10a75
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 11 deletions.
21 changes: 16 additions & 5 deletions index
Expand Up @@ -27973,11 +27973,22 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme

<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
Expand Down
24 changes: 18 additions & 6 deletions source
Expand Up @@ -31512,12 +31512,24 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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
Expand Down

0 comments on commit 7c10a75

Please sign in to comment.