Short URL: http://html5.org/r/2270
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2270 | WF2: <input type=reset> | 2008-10-02 22:23 |
Index: source =================================================================== --- source (revision 2269) +++ source (revision 2270) @@ -28052,15 +28052,64 @@ title="attr-input-type-reset">Reset Button</span> state, the rules in this section apply.</p> - <p class="XXX">...</p> + <p>The <code>input</code> element represents a button that, when + activated, resets the form. If the element has a <code + title="attr-input-value">value</code> attribute, the button's label + must be the value of that attribute; otherwise, it must be an + implementation-defined string that means "Reset" or some such.</p> - <p><strong>Constraint validation:</strong> If an <code>input</code> - element's <code title="attr-input-type">type</code> attribute is in - the <span title="attr-input-type-reset">Reset Button</span> state, - it is <span>barred from constraint validation</span>.</p> + <p>If the element is <i title="concept-input-mutable">mutable</i>, + the user should allow the user to activate the element.</p> + <!-- XXX event timing; activation behavior --> + <p>When the element is activated, 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> + <p><strong>The <span>value sanitization algorithm</span> is as + follows:</strong> Do nothing.</p> + + <p><strong>Constraint validation:</strong> The element is + <span>barred from constraint validation</span>.</p> + + <p>The <code title="dom-input-value">value</code> DOM attribute + applies to this element and is in mode <span + title="dom-input-value-default">default</span>.</p> + + <p>The following content attributes must not be specified and do not + apply to the element: + <code class="no-backref" title="attr-input-accept">accept</code>, + <code class="no-backref" title="attr-fs-action">action</code>, + <code class="no-backref" title="attr-input-alt">alt</code>, + <code class="no-backref" title="attr-input-autocomplete">autocomplete</code>, + <code class="no-backref" title="attr-input-checked">checked</code>, + <code class="no-backref" title="attr-fs-enctype">enctype</code>, + <code class="no-backref" title="attr-input-list">list</code>, + <code class="no-backref" title="attr-input-max">max</code>, + <code class="no-backref" title="attr-input-maxlength">maxlength</code>, + <code class="no-backref" title="attr-fs-method">method</code>, + <code class="no-backref" title="attr-input-min">min</code>, + <code class="no-backref" title="attr-input-pattern">pattern</code>, + <code class="no-backref" title="attr-input-readonly">readonly</code>, + <code class="no-backref" title="attr-input-required">required</code> + <code class="no-backref" title="attr-input-size">size</code>, + <code class="no-backref" title="attr-input-src">src</code>, + <code class="no-backref" title="attr-input-step">step</code>, and + <code class="no-backref" title="attr-fs-target">target</code>.</p> + + <p>The following DOM attributes and methods do not apply to the element: + <code class="no-backref" title="dom-input-checked">checked</code>, + <code class="no-backref" title="dom-input-list">list</code>, + <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>, + <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and + <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes; + <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and + <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p> + + + <h6><dfn title="attr-input-type-button">Button</dfn> state</h6> <p>When an <code>input</code> element's <code