- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 02 Oct 2008 09:46:14 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv6421
Modified Files:
Overview.html
Log Message:
WF2: Complete the informative table for <input>; redefine input.value so it handles the various behaviors that the states have. (whatwg r2262)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1434
retrieving revision 1.1435
diff -u -d -r1.1434 -r1.1435
--- Overview.html 2 Oct 2008 09:12:45 -0000 1.1434
+++ Overview.html 2 Oct 2008 09:46:11 -0000 1.1435
@@ -18705,7 +18705,6 @@
<th> <a href=#range-state title=attr-input-type-range>Range</a>
<th> <a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a>
<th> <a href=#radio-button-state title=attr-input-type-radio>Radio Button</a>
-
<th> <a href=#file-state title=attr-input-type-file>File</a>
<th> <a href=#hidden-state title=attr-input-type-hidden>Hidden</a>
<th> <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a>
@@ -18713,7 +18712,7 @@
<th> <a href=#reset-button-state title=attr-input-type-reset>Reset Button</a>
<th> <a href=#button-state title=attr-input-type-button>Button</a>
- <tbody><tr><!-- complete --><th> <code title=attr-input-accept><a href=#attr-input-accept>accept</a></code>
+ <tbody><tr><th> <code title=attr-input-accept><a href=#attr-input-accept>accept</a></code>
<td class=no> · <!-- Text -->
<td class=no> · <!-- E-mail -->
<td class=no> · <!-- URL -->
@@ -18752,8 +18751,8 @@
<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=yes> Yes <!-- Submit Button -->
+ <td class=yes> Yes <!-- Image Button -->
<td class=no> · <!-- Reset Button -->
<td class=no> · <!-- Button -->
@@ -18775,7 +18774,7 @@
<td class=no> · <!-- File -->
<td class=no> · <!-- Hidden -->
<td class=no> · <!-- Submit Button -->
- <td class=no> · <!-- Image Button -->
+ <td class=yes> Yes <!-- Image Button -->
<td class=no> · <!-- Reset Button -->
<td class=no> · <!-- Button -->
@@ -18840,8 +18839,8 @@
<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=yes> Yes <!-- Submit Button -->
+ <td class=yes> Yes <!-- Image Button -->
<td class=no> · <!-- Reset Button -->
<td class=no> · <!-- Button -->
@@ -18928,8 +18927,8 @@
<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=yes> Yes <!-- Submit Button -->
+ <td class=yes> Yes <!-- Image Button -->
<td class=no> · <!-- Reset Button -->
<td class=no> · <!-- Button -->
@@ -19014,7 +19013,7 @@
<td class=yes> Yes <!-- Range -->
<td class=yes> Yes <!-- Checkbox -->
<td class=yes> Yes <!-- Radio Button -->
- <td class=no> · <!-- File -->
+ <td class=yes> Yes <!-- File -->
<td class=no> · <!-- Hidden -->
<td class=no> · <!-- Submit Button -->
<td class=no> · <!-- Image Button -->
@@ -19061,7 +19060,7 @@
<td class=no> · <!-- File -->
<td class=no> · <!-- Hidden -->
<td class=no> · <!-- Submit Button -->
- <td class=no> · <!-- Image Button -->
+ <td class=yes> Yes <!-- Image Button -->
<td class=no> · <!-- Reset Button -->
<td class=no> · <!-- Button -->
@@ -19104,12 +19103,12 @@
<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=yes> Yes <!-- Submit Button -->
+ <td class=yes> Yes <!-- Image Button -->
<td class=no> · <!-- Reset Button -->
<td class=no> · <!-- Button -->
- <tr><!-- complete --><th> <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code>
+ <tr><th> <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code>
<td class=no> · <!-- Text -->
<td class=no> · <!-- E-mail -->
<td class=no> · <!-- URL -->
@@ -19132,28 +19131,28 @@
<td class=no> · <!-- Button -->
<tr><th> <code title=dom-input-value><a href=#dom-input-value>value</a></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=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Text -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- E-mail -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- URL -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Password -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Date and Time -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Date -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Month -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Week -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Time -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Local Date and Time -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Number -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Range -->
+ <td class=yes> <a href=#dom-input-value-default-on title=dom-input-value-default-on>default/on</a> <!-- Checkbox -->
+ <td class=yes> <a href=#dom-input-value-default-on title=dom-input-value-default-on>default/on</a> <!-- 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 -->
+ <td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Hidden -->
+ <td class=yes> <a href=#dom-input-value-default title=dom-input-value-default>default</a> <!-- Submit Button -->
+ <td class=yes> <a href=#dom-input-value-default title=dom-input-value-default>default</a> <!-- Image Button -->
+ <td class=yes> <a href=#dom-input-value-default title=dom-input-value-default>default</a> <!-- Reset Button -->
+ <td class=yes> <a href=#dom-input-value-default title=dom-input-value-default>default</a> <!-- Button -->
- <tr><!-- complete --><th> <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>
+ <tr><th> <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>
<td class=no> · <!-- Text -->
<td class=no> · <!-- E-mail -->
<td class=no> · <!-- URL -->
@@ -19388,7 +19387,8 @@
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, and
<code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes.
- <p>The following content attributes must not be specified and do not
+ <p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -19433,7 +19433,8 @@
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, and
<code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes.
- <p>The following content attributes must not be specified and do not
+ <p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -19475,7 +19476,8 @@
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, and
<code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes.
- <p>The following content attributes must not be specified and do not
+ <p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -19592,7 +19594,8 @@
<code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, and
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM attributes;
<code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>, and
- <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-input-alt><a href=#attr-input-alt>alt</a></code>,
@@ -19669,7 +19672,8 @@
<code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, and
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM attributes;
<code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>, and
- <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -19744,7 +19748,8 @@
<code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, and
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM attributes;
<code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>, and
- <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -19821,7 +19826,8 @@
<code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, and
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM attributes;
<code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>, and
- <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -19892,7 +19898,8 @@
<code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, and
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM attributes;
<code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>, and
- <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -19959,7 +19966,8 @@
<code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, and
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM attributes;
<code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>, and
- <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -20020,7 +20028,8 @@
<code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, and
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM attributes;
<code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>, and
- <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -20100,7 +20109,8 @@
<code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, and
<code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM attributes;
<code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>, and
- <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -20126,7 +20136,9 @@
attributes and DOM attributes apply to the element:
<code title=attr-input-checked><a href=#attr-input-checked>checked</a></code>, and
<code title=attr-input-required><a href=#attr-input-required>required</a></code> content attributes;
- <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code> DOM attribute.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code> and
+ <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-default-on title=dom-input-value-default-on>default/on</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -20146,7 +20158,6 @@
<code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>.<p>The following DOM attributes and methods do not apply to the element:
<code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>,
<code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>,
- <code class=no-backref title=dom-input-value><a href=#dom-input-value>value</a></code>,
<code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and
<code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes;
<code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and
@@ -20191,7 +20202,9 @@
attributes and DOM attributes apply to the element:
<code title=attr-input-checked><a href=#attr-input-checked>checked</a></code> and
<code title=attr-input-required><a href=#attr-input-required>required</a></code> content attributes;
- <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code> DOM attribute.<p>The following content attributes must not be specified and do not
+ <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code> and
+ <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-default-on title=dom-input-value-default-on>default/on</a>.<p>The following content attributes must not be specified and do not
apply to the element:
<code class=no-backref title=attr-input-accept><a href=#attr-input-accept>accept</a></code>,
<code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
@@ -20211,7 +20224,6 @@
<code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>.<p>The following DOM attributes and methods do not apply to the element:
<code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>,
<code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>,
- <code class=no-backref title=dom-input-value><a href=#dom-input-value>value</a></code>,
<code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and
<code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes;
<code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and
@@ -20404,18 +20416,30 @@
base</a> is not an integral multiple of the <a href=#concept-input-step title=concept-input-step>allowed value step</a>, the element is
<a href=#suffering-from-a-step-mismatch>suffering from a step mismatch</a>.<h5 id=common-input-element-apis><span class=secno>4.10.4.3 </span>Common <code><a href=#the-input-element>input</a></code> element APIs</h5><p>The <dfn id=dom-input-value title=dom-input-value><code>value</code></dfn> DOM
attribute allows scripts to manipulate the <a href=#concept-fe-value title=concept-fe-value>value</a> of an <code><a href=#the-input-element>input</a></code>
- element. If the attribute applies, then on getting, it must return
- the current <a href=#concept-fe-value title=concept-fe-value>value</a> of the
- element; and on setting, it must set the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the new value, set the
- element's <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value
- flag</a> to true, and then invoke the <a href=#value-sanitization-algorithm>value sanitization
- algorithm</a> defined for the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state. If
- the attribute does not apply, then on getting, if the element has a
- <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must
- return that attribute's value; otherwise, it must return the string
- "<code title="">on</code>"; and on setting, it must set the
- element's <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute to
- the new value.<p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> DOM
+ element. If the attribute applies, then it is in one of the
+ following modes, which define its behavior:<dl><dt><dfn id=dom-input-value-value title=dom-input-value-value>value</dfn>
+
+ <dd>On getting, it must return the current <a href=#concept-fe-value title=concept-fe-value>value</a> of the element. On setting,
+ it must set the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the new value, set the
+ element's <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value
+ flag</a> to true, and then invoke the <a href=#value-sanitization-algorithm>value sanitization
+ algorithm</a> defined for the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state.</dd>
+
+ <dt><dfn id=dom-input-value-default title=dom-input-value-default>default</dfn>
+
+ <dd>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
+ that attribute's value; otherwise, it must return the empty
+ string. On setting, it must set the element's <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute to the new
+ value.</dd>
+
+ <dt><dfn id=dom-input-value-default-on title=dom-input-value-default-on>default/on</dfn>
+
+ <dd>On getting, if the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must return
+ that attribute's value; otherwise, it must return the string "<code title="">on</code>". On setting, it must set the element's <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute to the new
+ value.</dd>
+
+ </dl><p>If the attribute does not apply, then on getting and setting it
+ must throw an <code>INVALID_ACCESS_ERR</code> exception.</p><hr><p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> DOM
attribute allows scripts to manipulate the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of an
<code><a href=#the-input-element>input</a></code> element. On getting, it must return the current
<a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of the element;
Received on Thursday, 2 October 2008 09:46:50 UTC