Short URL: http://html5.org/r/2280
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2280 | WF2: <button>. | 2008-10-04 01:21 |
Index: source
===================================================================
--- source (revision 2279)
+++ source (revision 2280)
@@ -26404,7 +26404,8 @@
attribute represents the element's name. The <code
title="attr-fe-disabled">disabled</code> attribute is used to make
the control non-interactive and to prevent its value from being
- submitted.</p>
+ submitted. The <code title="attr-fe-autofocus">autofocus</code>
+ attribute controls focus.</p>
<p>The <dfn title="dom-input-accept"><code>accept</code></dfn>, <dfn
title="dom-input-alt"><code>alt</code></dfn>, <dfn
@@ -28092,6 +28093,12 @@
title="concept-form-submit">submit</span> the <span>form
owner</span> from the <code>input</code> element.</p>
+ <p>The <code title="attr-fs-action">action</code>, <code
+ title="attr-fs-enctype">enctype</code>, <code
+ title="attr-fs-method">method</code>, and <code
+ title="attr-fs-target">target</code> attributes control the form
+ submission.</p>
+
<p>The following common <code>input</code> element content
attributes and DOM attributes apply to the element:
<code title="attr-fs-action">action</code>,
@@ -28272,6 +28279,12 @@
<hr>
+ <p>The <code title="attr-fs-action">action</code>, <code
+ title="attr-fs-enctype">enctype</code>, <code
+ title="attr-fs-method">method</code>, and <code
+ title="attr-fs-target">target</code> attributes control the form
+ submission.</p>
+
<p>The following common <code>input</code> element content
attributes and DOM attributes apply to the element:
<code title="attr-fs-action">action</code>,
@@ -29057,16 +29070,92 @@
</dd>
</dl>
- <p class="XXX">...</p>
+ <p>The <code>button</code> element represents a button. If the
+ element is not <span title="concept-fe-disabled">disabled</span>,
+ then the user agent should allow the user to activate the
+ button.</p>
+ <p>The <dfn title="attr-button-type"><code>type</code></dfn>
+ attribute controls the behavior of the button when it is activated.
+ It is an <span>enumerated attribute</span>. The following table
+ lists the keywords and states for the attribute — the keywords
+ in the left column map to the states in the cell in the second
+ column on the same row as the keyword.</p>
+
+ <table>
+ <thead>
+ <tr>
+ <th> Keyword
+ <th> State
+ <th> Brief description
+ <tbody>
+ <tr>
+ <td><dfn title="attr-button-type-submit"><code>submit</code></dfn>
+ <td><span title="attr-button-type-submit-state">Submit Button</span>
+ <td>Submits the form.
+ <tr>
+ <td><dfn title="attr-button-type-reset"><code>reset</code></dfn>
+ <td><span title="attr-button-type-reset-state">Reset Button</span>
+ <td>Resets the form.
+ <tr>
+ <td><dfn title="attr-button-type-button"><code>button</code></dfn>
+ <td><span title="attr-button-type-button-state">Button</span>
+ <td>Does nothing.
+ </table>
+
+ <p>The <i>missing value default</i> is the <span
+ title="attr-button-type-submit-state">Submit Button</span>
+ state.</p>
+
+ <p>If the element is not <span
+ title="concept-fe-disabled">disabled</span>, the <span>activation
+ behavior</span> of the <code>button</code> element is to run the
+ steps defined in the following list for the current state of the
+ element's <code title="attr-button-type">type</code> attribute.</p>
+
+ <dl>
+
+ <dt> <dfn title="attr-button-type-submit-state">Submit Button</dfn> </dt>
+
+ <dd><p>If the element has a <span>form owner</span>, the element
+ must <span title="concept-form-submit">submit</span> the <span>form
+ owner</span> from the <code>button</code> element.</p></dd>
+
+ <dt> <dfn title="attr-button-type-reset-state">Reset Button</dfn> </dt>
+
+ <dd><p>If the element has a <span>form owner</span>, the element
+ must <span title="concept-form-reset">reset</span> the <span>form
+ owner</span>.</p></dd>
+
+ <dt> <dfn title="attr-button-type-button-state">Button</dfn>
+
+ <dd><p>Do nothing.</p></dd>
+
+ </dl>
+
<p>The <code title="attr-fae-form">form</code> attribute is used to
explicitly associate the <code>button</code> element with its
<span>form owner</span>. The <code title="attr-fe-name">name</code>
attribute represents the element's name. The <code
title="attr-fe-disabled">disabled</code> attribute is used to make
the control non-interactive and to prevent its value from being
- submitted.</p>
+ submitted. The <code title="attr-fe-autofocus">autofocus</code>
+ attribute controls focus.
+ The <code title="attr-fs-action">action</code>, <code
+ title="attr-fs-enctype">enctype</code>, <code
+ title="attr-fs-method">method</code>, and <code
+ title="attr-fs-target">target</code> attributes control
+ the form submission.</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 <code title="attr-button-value">value</code>
+ attribute must not be present unless the <code
+ title="attr-fae-form">form</code> attribute is present. The
+ element's <span title="concept-fe-value">value</span> is the value
+ of the element's <code title="attr-button-value">value</code>
+ attribute, if there is one, or the empty string otherwise.</p>
+
<p>The <code title="dom-cva-willValidate">willValidate</code>,
<code title="dom-cva-validity">validity</code>, and <code
title="dom-cva-validationMessage">validationMessage</code>
@@ -29636,6 +29725,9 @@
<p class="XXX">... <dfn>suffering from a type
mismatch</dfn></p>
+ <p class="XXX">... <dfn>suffering from a pattern
+ mismatch</dfn></p>
+
<p class="XXX">... <dfn>suffering from being too
long</dfn></p>