Skip to content

Commit

Permalink
[ac] (0) Ban the attributes for form submission on non-submit <button>s.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8704

git-svn-id: http://svn.whatwg.org/webapps@4677 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 6, 2010
1 parent f9164cb commit f9da1f4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions complete.html
Expand Up @@ -36695,6 +36695,11 @@ <h4 id=the-button-element><span class=secno>4.10.6 </span>The <dfn><code>button<
be used to make submit buttons that do not trigger the constraint
validation.</p>

<p>The <code title=attr-fs-formaction><a href=#attr-fs-formaction>formaction</a></code>, <code title=attr-fs-formenctype><a href=#attr-fs-formenctype>formenctype</a></code>, <code title=attr-fs-formmethod><a href=#attr-fs-formmethod>formmethod</a></code>, <code title=attr-fs-formnovalidate><a href=#attr-fs-formnovalidate>formnovalidate</a></code>, and <code title=attr-fs-formtarget><a href=#attr-fs-formtarget>formtarget</a></code> must not be specified
if the element's <code title=attr-button-type><a href=#attr-button-type>type</a></code>
attribute is not in the <a href=#attr-button-type-submit-state title=attr-button-type-submit-state>Submit Button</a>
state.</p>

<p>The <dfn id=attr-button-value title=attr-button-value><code>value</code></dfn>
attribute gives the element's value for the purposes of form
submission. The element's <a href=#concept-fe-value title=concept-fe-value>value</a> is the value of the element's
Expand Down
5 changes: 5 additions & 0 deletions index
Expand Up @@ -36594,6 +36594,11 @@ You cannot complete this form until the field is correct.</samp></pre>
be used to make submit buttons that do not trigger the constraint
validation.</p>

<p>The <code title=attr-fs-formaction><a href=#attr-fs-formaction>formaction</a></code>, <code title=attr-fs-formenctype><a href=#attr-fs-formenctype>formenctype</a></code>, <code title=attr-fs-formmethod><a href=#attr-fs-formmethod>formmethod</a></code>, <code title=attr-fs-formnovalidate><a href=#attr-fs-formnovalidate>formnovalidate</a></code>, and <code title=attr-fs-formtarget><a href=#attr-fs-formtarget>formtarget</a></code> must not be specified
if the element's <code title=attr-button-type><a href=#attr-button-type>type</a></code>
attribute is not in the <a href=#attr-button-type-submit-state title=attr-button-type-submit-state>Submit Button</a>
state.</p>

<p>The <dfn id=attr-button-value title=attr-button-value><code>value</code></dfn>
attribute gives the element's value for the purposes of form
submission. The element's <a href=#concept-fe-value title=concept-fe-value>value</a> is the value of the element's
Expand Down
10 changes: 10 additions & 0 deletions source
Expand Up @@ -40812,6 +40812,16 @@ You cannot complete this form until the field is correct.</samp></pre>
be used to make submit buttons that do not trigger the constraint
validation.</p>

<p>The <code title="attr-fs-formaction">formaction</code>, <code
title="attr-fs-formenctype">formenctype</code>, <code
title="attr-fs-formmethod">formmethod</code>, <code
title="attr-fs-formnovalidate">formnovalidate</code>, and <code
title="attr-fs-formtarget">formtarget</code> must not be specified
if the element's <code title="attr-button-type">type</code>
attribute is not in the <span
title="attr-button-type-submit-state">Submit Button</span>
state.</p>

<p>The <dfn title="attr-button-value"><code>value</code></dfn>
attribute gives the element's value for the purposes of form
submission. The element's <span
Expand Down

0 comments on commit f9da1f4

Please sign in to comment.