Short URL: http://html5.org/r/2257
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2257 | WF2: <input type=checkbox> and significant fallout therefrom. | 2008-10-02 03:10 |
Index: source
===================================================================
--- source (revision 2256)
+++ source (revision 2257)
@@ -26084,6 +26084,29 @@
<td class="no"> · <!-- Button -->
<tr>
+ <th> <code title="dom-input-value">value</code>
+ <td class="yes"> Yes <!-- Text -->
+ <td class="yes"> Yes <!-- E-mail -->
+ <td class="yes"> Yes <!-- URL -->
+ <td class="yes"> Yes <!-- Password -->
+ <td class="yes"> Yes <!-- Date and Time -->
+ <td class="yes"> Yes <!-- Date -->
+ <td class="yes"> Yes <!-- Month -->
+ <td class="yes"> Yes <!-- Week -->
+ <td class="yes"> Yes <!-- Time -->
+ <td class="yes"> Yes <!-- Local Date and Time -->
+ <td class="yes"> Yes <!-- Number -->
+ <td class="yes"> Yes <!-- Range -->
+ <td class="no"> · <!-- Checkbox -->
+ <td class="no"> · <!-- Radio Button -->
+ <td class="no"> · <!-- File -->
+ <td class="no"> · <!-- Hidden -->
+ <td class="no"> · <!-- Submit Button -->
+ <td class="no"> · <!-- Image Button -->
+ <td class="no"> · <!-- Reset Button -->
+ <td class="no"> · <!-- Button -->
+
+ <tr>
<th> <code title="dom-input-valueAsNumber">valueAsNumber</code>
<td class="no"> · <!-- Text -->
<td class="no"> · <!-- E-mail -->
@@ -26228,17 +26251,83 @@
<code title="dom-input-stepDown">stepDown()</code>.</p>
<p>Each <code>input</code> element has a boolean <dfn
+ title="concept-input-value-dirty-flag">dirty value flag</dfn>. When
+ it is true, the element is said to have a <dfn
+ title="concept-input-value-dirty"><i>dirty value</i></dfn>. The
+ <span title="concept-input-value-dirty-flag">dirty value flag</span>
+ must be initially set to false when the element is created, and must
+ be set to true whenever the user interacts with the control in a way
+ that changes the <span title="concept-fe-value">value</span>.</p>
+
+ <p>The <dfn title="attr-input-value"><code>value</code></dfn>
+ content attribute gives the default <span
+ title="concept-fe-value">value</span> of the <code>input</code>
+ element. When the <code title="attr-input-value">value</code>
+ content attribute is added, set, or removed, if the control does not
+ have a <i title="concept-input-value-dirty">dirty value</i>, the
+ user agent must set the <span title="concept-fe-value">value</span>
+ of the element to the value of the <code
+ title="attr-input-value">value</code> content attribute, if there is
+ one, or the empty string otherwise, and run the <span>value
+ sanitization algorithm</span>.</p>
+
+ <p>Each <code>input</code> element has a <span
+ title="concept-fe-checked">checkedness</span>, which is exposed by
+ the <code title="dom-input-checked">checked</code> DOM
+ attribute.</p>
+
+ <p>Each <code>input</code> element has a boolean <dfn
+ title="concept-input-checked-dirty-flag">dirty checkedness
+ flag</dfn>. When it is true, the element is said to have a <dfn
+ title="concept-input-checked-dirty"><i>dirty
+ checkedness</i></dfn>. The <span
+ title="concept-input-checked-dirty-flag">dirty checkedness
+ flag</span> must be initially set to false when the element is
+ created, and must be set to true whenever the user interacts with
+ the control in a way that changes the <span
+ title="concept-fe-checked">checkedness</span>.</p>
+
+ <p>The <dfn title="attr-input-checked"><code>checked</code></dfn>
+ content attribute gives the default <span
+ title="concept-fe-checked">checkedness</span> of the
+ <code>input</code> element. When the <code
+ title="attr-input-checked">checked</code> content attribute is
+ added, if the control does not have <i
+ title="concept-input-value-dirty">dirty checkedness</i>, the user
+ agent must set the <span
+ title="concept-fe-checked">checkedness</span> of the element to
+ true; when the <code title="attr-input-checked">checked</code>
+ content attribute is removed, if the control does not have <i
+ title="concept-input-value-dirty">dirty checkedness</i>, the user
+ agent must set the <span
+ title="concept-fe-checked">checkedness</span> of the element to
+ false.</p>
+
+ <p>The <span title="concept-form-reset-control">reset
+ algorithm</span> for <code>input</code> elements is to set the <span
+ title="concept-input-value-dirty-flag">dirty value flag</span> and
+ <span title="concept-input-checked-dirty-flag">dirty checkedness
+ flag</span> back to false, set the <span
+ title="concept-fe-value">value</span> of the element to the value of
+ the <code title="attr-input-value">value</code> content attribute,
+ if there is one, or the empty string otherwise, set the <span
+ title="concept-fe-checked">checkedness</span> of the element to true
+ if the element has a <code title="attr-input-checked">checked</code>
+ content attribute and false if it does not, and then invoke the
+ <span>value sanitization algorithm</span> defined for the <code
+ title="attr-input-type">type</code> attribute's current state.</p>
+
+ <p>Each <code>input</code> element has a boolean <dfn
title="concept-input-mutability">mutability flag</dfn>. When it is
true, the element is said to be <dfn
title="concept-input-mutable"><i>mutable</i></dfn>, and when it is
false the element is <dfn
title="concept-input-immutable"><i>immutable</i></dfn>. Unless
otherwise specified, an <code>input</code> element is always <i
- title="concept-input-mutable">mutable</i>. When an
- <code>input</code> element is <i
- title="concept-input-immutable">immutable</i>, the user agent should
- not allow the user to modify the <span
- title="concept-fe-value">value</span>.</p>
+ title="concept-input-mutable">mutable</i>. Unless otherwise
+ specified, the user agent should not allow the user to modify the
+ element's <span title="concept-fe-value">value</span> or <span
+ title="concept-fe-checked">checkedness</span>.</p>
<p>When an <code>input</code> element is <span
title="concept-fe-disabled">disabled</span>, it is <i
@@ -26251,43 +26340,10 @@
this affect shadow trees in XBL2? -->
<p class="note">The <code
- title="attr-input-readonly">readonly</code> attribute can also make
- an <code>input</code> element <i
+ title="attr-input-readonly">readonly</code> attribute can also in
+ some cases make an <code>input</code> element <i
title="concept-input-immutable">immutable</i>.</p>
- <p>Each <code>input</code> element has a boolean <dfn
- title="concept-input-dirty-flag">dirty flag</dfn>. When it is true,
- the element is said to be <dfn
- title="concept-input-dirty"><i>dirty</i></dfn>.</p>
-
- <p>The <span title="concept-input-dirty-flag">dirty flag</span> must
- be initially set to false (not <i
- title="concept-input-dirty">dirty</i>) when the element is created,
- and must be set to true (<i title="concept-input-dirty">dirty</i>)
- whenever the user interacts with the control in a way that changes
- the <span title="concept-fe-value">value</span>.</p>
-
- <p>The <dfn title="attr-input-value"><code>value</code></dfn>
- content attribute gives the default <span
- title="concept-fe-value">value</span> of the <code>input</code>
- element. When the <code title="attr-input-value">value</code>
- content attribute is added, set, or removed, if the control is not
- <i title="concept-input-dirty">dirty</i>, the user agent must set
- the <span title="concept-fe-value">value</span> of the element to
- the value of the <code title="attr-input-value">value</code> content
- attribute, if there is one, or the empty string otherwise, and run
- the <span>value sanitization algorithm</span>.</p>
-
- <p>The <span title="concept-form-reset-control">reset
- algorithm</span> for <code>input</code> elements is to set the <span
- title="concept-input-dirty-flag">dirty flag</span> back to false
- (not <i title="concept-input-dirty">dirty</i>), set the <span
- title="concept-fe-value">value</span> of the element to the value of
- the <code title="attr-input-value">value</code> content attribute,
- if there is one, or the empty string otherwise, and then invoke the
- <span>value sanitization algorithm</span> defined for the <code
- title="attr-input-type">type</code> attribute's current state.</p>
-
<p>The <code title="attr-fae-form">form</code> attribute is used to
explicitly associate the <code>input</code> element with its
<span>form owner</span>. The <code title="attr-fe-name">name</code>
@@ -26362,7 +26418,7 @@
follows:</strong> <span>Strip line breaks from the value</span>.</p>
<p>The following common <code>input</code> element content
- attributes, DOM attributes, and methods apply to the element:
+ attributes and DOM attributes apply to the element:
<code title="attr-input-autocomplete">autocomplete</code>,
<code title="attr-input-list">list</code>,
<code title="attr-input-maxlength">maxlength</code>,
@@ -26370,30 +26426,31 @@
<code title="attr-input-readonly">readonly</code>,
<code title="attr-input-required">required</code>, and
<code title="attr-input-size">size</code> content attributes;
- <code title="dom-input-list">list</code>, and
- <code title="dom-input-selectedOption">selectedOption</code> DOM attributes.
+ <code title="dom-input-list">list</code>,
+ <code title="dom-input-selectedOption">selectedOption</code>, and
+ <code title="dom-input-value">value</code> DOM attributes.
<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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</code>,
<code class="no-backref" title="attr-input-max">max</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-src">src</code>,
- <code class="no-backref" title="attr-input-step">step</code>,
- <code class="no-backref" title="attr-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <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-valueAsDate">valueAsDate</code>,
- <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</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-stepUp">stepUp()</code>, and
- <code class="no-backref" title="dom-input-stepDown">stepDown()</code>.</p>
+ <code class="no-backref" title="dom-input-stepDown">stepDown()</code> methods.</p>
@@ -26432,7 +26489,7 @@
href="#refsRFC2822">[RFC2822]</a></p>
<p>The following common <code>input</code> element content
- attributes, DOM attributes, and methods apply to the element:
+ attributes and DOM attributes apply to the element:
<code title="attr-input-autocomplete">autocomplete</code>,
<code title="attr-input-list">list</code>,
<code title="attr-input-maxlength">maxlength</code>,
@@ -26440,30 +26497,31 @@
<code title="attr-input-readonly">readonly</code>,
<code title="attr-input-required">required</code>, and
<code title="attr-input-size">size</code> content attributes;
- <code title="dom-input-list">list</code>, and
- <code title="dom-input-selectedOption">selectedOption</code> DOM attributes.
+ <code title="dom-input-list">list</code>,
+ <code title="dom-input-selectedOption">selectedOption</code>, and
+ <code title="dom-input-value">value</code> DOM attributes.
<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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</code>,
<code class="no-backref" title="attr-input-max">max</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-src">src</code>,
- <code class="no-backref" title="attr-input-step">step</code>,
- <code class="no-backref" title="attr-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <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-valueAsDate">valueAsDate</code>,
- <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</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-stepUp">stepUp()</code>, and
- <code class="no-backref" title="dom-input-stepDown">stepDown()</code>.</p>
+ <code class="no-backref" title="dom-input-stepDown">stepDown()</code> methods.</p>
@@ -26498,7 +26556,7 @@
mismatch</span>.</p>
<p>The following common <code>input</code> element content
- attributes, DOM attributes, and methods apply to the element:
+ attributes and DOM attributes apply to the element:
<code title="attr-input-autocomplete">autocomplete</code>,
<code title="attr-input-list">list</code>,
<code title="attr-input-maxlength">maxlength</code>,
@@ -26506,30 +26564,31 @@
<code title="attr-input-readonly">readonly</code>,
<code title="attr-input-required">required</code>, and
<code title="attr-input-size">size</code> content attributes;
- <code title="dom-input-list">list</code>, and
- <code title="dom-input-selectedOption">selectedOption</code> DOM attributes.
+ <code title="dom-input-list">list</code>,
+ <code title="dom-input-selectedOption">selectedOption</code>, and
+ <code title="dom-input-value">value</code> DOM attributes.
<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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</code>,
<code class="no-backref" title="attr-input-max">max</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-src">src</code>,
- <code class="no-backref" title="attr-input-step">step</code>,
- <code class="no-backref" title="attr-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <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-valueAsDate">valueAsDate</code>,
- <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</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-stepUp">stepUp()</code>, and
- <code class="no-backref" title="dom-input-stepDown">stepDown()</code>.</p>
+ <code class="no-backref" title="dom-input-stepDown">stepDown()</code> methods.</p>
@@ -26555,38 +26614,39 @@
follows:</strong> <span>Strip line breaks from the value</span>.</p>
<p>The following common <code>input</code> element content
- attributes apply to the element:
+ attributes and DOM attributes apply to the element:
<code title="attr-input-autocomplete">autocomplete</code>,
<code title="attr-input-maxlength">maxlength</code>,
<code title="attr-input-pattern">pattern</code>,
<code title="attr-input-readonly">readonly</code>,
<code title="attr-input-required">required</code>, and
- <code title="attr-input-size">size</code>.
+ <code title="attr-input-size">size</code> content attributes;
+ <code title="attr-input-value">value</code> DOM attribute.</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-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-fs-method">method</code>,
<code class="no-backref" title="attr-input-min">min</code>,
<code class="no-backref" title="attr-input-src">src</code>,
- <code class="no-backref" title="attr-input-step">step</code>,
- <code class="no-backref" title="attr-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <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>,
- <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</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-stepUp">stepUp()</code>, and
- <code class="no-backref" title="dom-input-stepDown">stepDown()</code>.</p>
+ <code class="no-backref" title="dom-input-stepDown">stepDown()</code> methods.</p>
@@ -26693,25 +26753,26 @@
<code title="attr-input-required">required</code>, and
<code title="attr-input-step">step</code> content attributes;
<code title="dom-input-list">list</code>,
+ <code title="dom-input-value">value</code>,
<code title="dom-input-valueAsDate">valueAsDate</code>,
- <code title="dom-input-valueAsNumber">valueAsNumber</code>,
- <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>, and
+ <code title="dom-input-selectedOption">selectedOption</code> DOM attributes;
<code title="dom-input-stepUp">stepUp()</code>, and
- <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+ <code title="dom-input-stepDown">stepDown()</code> methods.</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-input-alt">alt</code>,
+ <code class="no-backref" title="attr-fs-action">action</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-maxlength">maxlength</code>,
+ <code class="no-backref" title="attr-fs-method">method</code>,
<code class="no-backref" title="attr-input-pattern">pattern</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-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <code class="no-backref" title="attr-input-src">src</code>, and
+ <code class="no-backref" title="attr-fs-target">target</code>.</p>
<p>The
<code class="no-backref" title="dom-input-checked">checked</code>
@@ -26818,25 +26879,26 @@
<code title="attr-input-required">required</code>, and
<code title="attr-input-step">step</code> content attributes;
<code title="dom-input-list">list</code>,
+ <code title="dom-input-value">value</code>,
<code title="dom-input-valueAsDate">valueAsDate</code>,
- <code title="dom-input-valueAsNumber">valueAsNumber</code>,
- <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>, and
+ <code title="dom-input-selectedOption">selectedOption</code> DOM attributes;
<code title="dom-input-stepUp">stepUp()</code>, and
- <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+ <code title="dom-input-stepDown">stepDown()</code> methods.</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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</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-pattern">pattern</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-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <code class="no-backref" title="attr-input-src">src</code>, and
+ <code class="no-backref" title="attr-fs-target">target</code>.</p>
<p>The
<code class="no-backref" title="dom-input-checked">checked</code>
@@ -26945,25 +27007,26 @@
<code title="attr-input-required">required</code>, and
<code title="attr-input-step">step</code> content attributes;
<code title="dom-input-list">list</code>,
+ <code title="dom-input-value">value</code>,
<code title="dom-input-valueAsDate">valueAsDate</code>,
- <code title="dom-input-valueAsNumber">valueAsNumber</code>,
- <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>, and
+ <code title="dom-input-selectedOption">selectedOption</code> DOM attributes;
<code title="dom-input-stepUp">stepUp()</code>, and
- <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+ <code title="dom-input-stepDown">stepDown()</code> methods.</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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</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-pattern">pattern</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-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <code class="no-backref" title="attr-input-src">src</code>, and
+ <code class="no-backref" title="attr-fs-target">target</code>.</p>
<p>The
<code class="no-backref" title="dom-input-checked">checked</code>
@@ -27071,25 +27134,26 @@
<code title="attr-input-required">required</code>, and
<code title="attr-input-step">step</code> content attributes;
<code title="dom-input-list">list</code>,
+ <code title="dom-input-value">value</code>,
<code title="dom-input-valueAsDate">valueAsDate</code>,
- <code title="dom-input-valueAsNumber">valueAsNumber</code>,
- <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>, and
+ <code title="dom-input-selectedOption">selectedOption</code> DOM attributes;
<code title="dom-input-stepUp">stepUp()</code>, and
- <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+ <code title="dom-input-stepDown">stepDown()</code> methods.</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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</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-pattern">pattern</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-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <code class="no-backref" title="attr-input-src">src</code>, and
+ <code class="no-backref" title="attr-fs-target">target</code>.</p>
<p>The
<code class="no-backref" title="dom-input-checked">checked</code>
@@ -27192,25 +27256,26 @@
<code title="attr-input-required">required</code>, and
<code title="attr-input-step">step</code> content attributes;
<code title="dom-input-list">list</code>,
+ <code title="dom-input-value">value</code>,
<code title="dom-input-valueAsDate">valueAsDate</code>,
- <code title="dom-input-valueAsNumber">valueAsNumber</code>,
- <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>, and
+ <code title="dom-input-selectedOption">selectedOption</code> DOM attributes;
<code title="dom-input-stepUp">stepUp()</code>, and
- <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+ <code title="dom-input-stepDown">stepDown()</code> methods.</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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</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-pattern">pattern</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-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <code class="no-backref" title="attr-input-src">src</code>, and
+ <code class="no-backref" title="attr-fs-target">target</code>.</p>
<p>The
<code class="no-backref" title="dom-input-checked">checked</code>
@@ -27301,24 +27366,25 @@
<code title="attr-input-required">required</code>, and
<code title="attr-input-step">step</code> content attributes;
<code title="dom-input-list">list</code>,
- <code title="dom-input-valueAsNumber">valueAsNumber</code>,
- <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-value">value</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>, and
+ <code title="dom-input-selectedOption">selectedOption</code> DOM attributes;
<code title="dom-input-stepUp">stepUp()</code>, and
- <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+ <code title="dom-input-stepDown">stepDown()</code> methods.</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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</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-pattern">pattern</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-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <code class="no-backref" title="attr-input-src">src</code>, and
+ <code class="no-backref" title="attr-fs-target">target</code>.</p>
<p>The following DOM attributes do not apply to the element:
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
@@ -27398,24 +27464,25 @@
<code title="attr-input-required">required</code>, and
<code title="attr-input-step">step</code> content attributes;
<code title="dom-input-list">list</code>,
- <code title="dom-input-valueAsNumber">valueAsNumber</code>,
- <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-value">value</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>, and
+ <code title="dom-input-selectedOption">selectedOption</code> DOM attributes;
<code title="dom-input-stepUp">stepUp()</code>, and
- <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+ <code title="dom-input-stepDown">stepDown()</code> methods.</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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</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-pattern">pattern</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-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <code class="no-backref" title="attr-input-src">src</code>, and
+ <code class="no-backref" title="attr-fs-target">target</code>.</p>
<p>The following DOM attributes do not apply to the element:
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
@@ -27535,24 +27602,25 @@
<code title="attr-input-required">required</code>, and
<code title="attr-input-step">step</code> content attributes;
<code title="dom-input-list">list</code>,
- <code title="dom-input-valueAsNumber">valueAsNumber</code>,
- <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-value">value</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>, and
+ <code title="dom-input-selectedOption">selectedOption</code> DOM attributes;
<code title="dom-input-stepUp">stepUp()</code>, and
- <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+ <code title="dom-input-stepDown">stepDown()</code> methods.</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-checked">checked</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</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-pattern">pattern</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-fs-target">target</code>,
- <code class="no-backref" title="attr-fs-method">method</code>,
- <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
- <code class="no-backref" title="attr-fs-action">action</code>.</p>
+ <code class="no-backref" title="attr-input-src">src</code>, and
+ <code class="no-backref" title="attr-fs-target">target</code>.</p>
<p>The following DOM attributes do not apply to the element:
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
@@ -27567,12 +27635,56 @@
title="attr-input-type-checkbox">Checkbox</span> state, the rules in
this section apply.</p>
- <p class="big-issue">...</p>
+ <p>The <code>input</code> element represents a two-state control
+ that represents the element's <span
+ title="concept-fe-checked">checkedness</span> state. If the
+ element's <span title="concept-fe-checked">checkedness</span> state
+ is true, the control represents a positive selection, and if it is
+ false, a negative selection.</p>
- <p class="big-issue">... <dfn title="concept-input-checked-checkbox">checked</dfn></p>
+ <p>If the element is <i title="concept-input-mutable">mutable</i>,
+ the user should allow the user to toggle the <span
+ title="concept-input-checked">checkedness</span> state.</p>
+ <p><strong>The <span>value sanitization algorithm</span> is as
+ follows:</strong> Do nothing.</p>
+ <p>The following common <code>input</code> element content
+ attributes and DOM attributes apply to the element:
+ <code title="attr-input-autocomplete">autocomplete</code>,
+ <code title="attr-input-checked">checked</code>, and
+ <code title="attr-input-required">required</code> content attributes;
+ <code class="no-backref" title="dom-input-checked">checked</code> DOM attribute.</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-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-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-list">list</code>,
+ <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
+ <code class="no-backref" title="dom-input-value">value</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-radio">Radio Button</dfn> state</h6>
<p>When an <code>input</code> element's <code
@@ -27582,10 +27694,8 @@
<p class="big-issue">...</p>
- <p class="big-issue">... <dfn title="concept-input-checked-radio">checked</dfn></p>
-
<h6><dfn title="attr-input-type-file">File</dfn> state</h6>
<p>When an <code>input</code> element's <code
@@ -27826,9 +27936,9 @@
allowed value length</span>.</p>
<p><strong>Constraint validation:</strong> If an <code>input</code>
- element has a <span>maximum allowed value length</span>, and it is
- not <span title="concept-input-dirty">dirty</span>, and the
- <span>codepoint length</span> of the element's <span
+ element has a <span>maximum allowed value length</span>, its <span
+ title="concept-input-value-dirty-flag">dirty value flag</span> is
+ false, and the <span>codepoint length</span> of the element's <span
title="concept-fe-value">value</span> is greater than the element's
<span>maximum allowed value length</span>, then the element is
<span>suffering from being too long</span>.</p>
@@ -28013,14 +28123,29 @@
<p>The <dfn title="dom-input-value"><code>value</code></dfn> DOM
attribute allows scripts to manipulate the <span
title="concept-fe-value">value</span> of an <code>input</code>
- element. On getting, it must return the current <span
- title="concept-fe-value">value</span> of the element. On setting,
- it must set the element's <span
- title="concept-fe-value">value</span> to the new value, and then
- invoke the <span>value sanitization algorithm</span> defined for the
- element's <code title="attr-input-type">type</code> attribute's
- current state.</p>
+ element. If the attribute applies, then on getting, it must return
+ the current <span title="concept-fe-value">value</span> of the
+ element; and on setting, it must set the element's <span
+ title="concept-fe-value">value</span> to the new value, set the
+ element's <span title="concept-input-value-dirty-flag">dirty value
+ flag</span> to true, and then invoke the <span>value sanitization
+ algorithm</span> defined for the element's <code
+ title="attr-input-type">type</code> attribute's current state. If
+ the attribute does not apply, then it must <span>reflect</span> the
+ element's <code title="attr-input-value">value</code> content
+ attribute.</p>
+ <p>The <dfn title="dom-input-checked"><code>checked</code></dfn> DOM
+ attribute allows scripts to manipulate the <span
+ title="concept-fe-checked">checkedness</span> of an
+ <code>input</code> element. On getting, it must return the current
+ <span title="concept-fe-checked">checkedness</span> of the element;
+ and on setting, it must set the element's <span
+ title="concept-fe-checked">checkedness</span> to the new value and
+ set the element's <span
+ title="concept-input-checked-dirty-flag">dirty checkedness
+ flag</span> to true.</p>
+
<hr>
<p>The <dfn
@@ -28164,7 +28289,6 @@
<h6>Others...</h6>
- <p class="big-issue">... <dfn title="dom-input-checked"><code>checked</code></dfn></p>
<p class="big-issue">... <dfn title="dom-input-list"><code>list</code></dfn></p>
<p class="big-issue">... <dfn title="dom-input-selectedOption"><code>selectedOption</code></dfn></p>
@@ -28690,6 +28814,7 @@
<h5>A form control's value</h5>
<p class="big-issue">... <dfn title="concept-fe-value">value</dfn></p>
+ <p class="big-issue">... <dfn title="concept-fe-checked">checkedness</dfn></p>
<!-- XXX autocomplete: define somewhere that the value may be set from a stored value -->
@@ -29003,16 +29128,16 @@
<li>The <var title="">field</var> element is an
<code>input</code> element whose <code
title="attr-input-type">type</code> attribute is in the <span
- title="attr-input-type-checkbox-state">Checkbox</span> state
- and the control is not <span
- title="concept-input-checked-checkbox">checked</span>.</li>
+ title="attr-input-type-checkbox">Checkbox</span> state and
+ whose <span title="concept-fe-checked">checkedness</span> is
+ false.</li>
<li>The <var title="">field</var> element is an
<code>input</code> element whose <code
title="attr-input-type">type</code> attribute is in the <span
- title="attr-input-type-radio-state">Radio Button</span> state
- and the control is not <span
- title="concept-input-checked-radio">checked</span>.</li>
+ title="attr-input-type-radio">Radio Button</span> state and
+ whose <span title="concept-fe-checked">checkedness</span> is
+ false.</li>
<li>The <var title="">field</var> element is an
<code>input</code> element whose <code
@@ -29103,6 +29228,31 @@
title="concept-option-value">value</span> of the
<code>option</code> element as the value.</p></li>
+ <li>
+
+ <p>Otherwise, if the <var title="">field</var> element is an
+ <code>input</code> element whose <code
+ title="attr-input-type">type</code> attribute is in the <span
+ title="attr-input-type-checkbox">Checkbox</span> state or the
+ <span title="attr-input-type-radio">Radio Button</span> state,
+ then then run these further nested substeps:</p>
+
+ <ol>
+
+ <li><p>If the <var title="">field</var> element has a <code
+ title="attr-input-value">value</code> attribute specified, then
+ let <var title="">value</var> be the value of that attribute;
+ otherwise, let <var title="">value</var> be the string
+ "on".</p></li>
+
+ <li><p>Append an entry in the <var title="">form data set</var>
+ with <var title="">name</var> as the name and <var
+ title="">value</var> as the value.</p></li>
+
+ </ol>
+
+ </li>
+
<li><p>Otherwise, if the <var title="">field</var> element is an
<code>input</code> element whose <code
title="attr-input-type">type</code> attribute is in the <span
@@ -30805,16 +30955,16 @@
title="dom-provider-getCellClasses">getCellClasses()</code> method
must add the <code
title="datagrid-cell-class-checked">checked</code> class if the
- <code>input</code> element is <span
- title="dom-input-checked">checked</span>, and the <code
- title="datagrid-cell-class-unchecked">unchecked</code> class
+ <code>input</code> element's <span
+ title="concept-fe-checked">checkedness</span> is true, and the
+ <code title="datagrid-cell-class-unchecked">unchecked</code> class
otherwise.</p>
<p>The <code
title="dom-provider-setCellCheckedState">setCellCheckedState()</code>
method must set the <code>input</code> element's checkbox <span
- title="dom-input-checked">state</span> to checked if the method's
- third argument is 1, and to unchecked otherwise.</p>
+ title="concept-fe-checked">checkedness</span> to true if the
+ method's third argument is 1, and to false otherwise.</p>
<p>The <code title="dom-provider-cycleCell">cycleCell()</code> and
<code title="dom-provider-editCell">editCell()</code> methods must
@@ -32703,7 +32853,7 @@
<p>The <span title="command-facet-CheckedState">Checked State</span>
of the command is true if the command is of <span
title="command-facet-Type">Type</span> "radio" or "checkbox" and the
- element has a <code title="attr-input-checked">checked</code>
+ element is <span title="concept-fe-checked">checked</span>
attribute, and false otherwise.</p>
<p>The <span title="command-facet-Action">Action</span> of the