Short URL: http://html5.org/r/2259
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2259 | WF2: <input type=radio> | 2008-10-02 07:31 |
Index: source
===================================================================
--- source (revision 2258)
+++ source (revision 2259)
@@ -25918,8 +25918,8 @@
<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="yes"> Yes <!-- Number -->
+ <td class="no"> · <!-- Range -->
<td class="no"> · <!-- Checkbox -->
<td class="no"> · <!-- Radio Button -->
<td class="no"> · <!-- File -->
@@ -27654,14 +27654,13 @@
<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>
+ title="concept-fe-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>
@@ -27671,6 +27670,7 @@
<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-fs-enctype">enctype</code>,
<code class="no-backref" title="attr-input-list">list</code>,
<code class="no-backref" title="attr-input-max">max</code>,
@@ -27702,10 +27702,108 @@
title="attr-input-type-radio">Radio Button</span> state, the rules
in this section apply.</p>
- <p class="big-issue">...</p>
+ <p>The <code>input</code> element represents a control that, when
+ used in conjunction with other <code>input</code> elements, forms a
+ <i>radio button group</i> in which only one control can have its
+ <span title="concept-fe-checked">checkedness</span> state set to
+ true. If the element's <span
+ title="concept-fe-checked">checkedness</span> state is true, the
+ control represents the selected control in the group, and if it is
+ false, it indicates a control in the group that is not selected.</p>
+ <p>The <dfn><i>radio button group</i></dfn> that contains an
+ <code>input</code> element <var title="">a</var> also contains all
+ the other <code>input</code> elements <var title="">b</var> that
+ fulfill all of the following conditions:</p>
+ <ul>
+ <li>The <code>input</code> element <var title="">b</var>'s <code
+ title="attr-input-type">type</code> attribute is in the <span
+ title="attr-input-type-radio">Radio Button</span> state.</li>
+
+ <li>Either neither <var title="">a</var> nor <var title="">b</var>
+ have a <span>form owner</span>, or they both have one and it is the
+ same for both.</li>
+
+ <li>They both have a <code title="attr-input-name">name</code>
+ attribute, and the value of <var title="">a</var>'s <code
+ title="attr-input-name">name</code> attribute is a
+ <span>compatibility caseless</span> match for the value of <var
+ title="">b</var>'s <code title="attr-input-name">name</code>
+ attribute.</li>
+
+ </ul>
+
+ <p>A document must not contain an <code>input</code> element whose
+ <i>radio button group</i> contains only that element.</p>
+
+ <p>If the element is <i title="concept-input-mutable">mutable</i>,
+ the user should allow the user to set the <span
+ title="concept-fe-checked">checkedness</span> state of the
+ element to true.</p>
+
+ <p>When any of the following events occur, if the element's <span
+ title="concept-fe-checked">checkedness</span> state is true after
+ the event, the <span
+ title="concept-fe-checked">checkedness</span> state of all the
+ other elements in the same <i>radio button group</i> must be set to
+ false:</p> <!-- XXX event firing order and timing -->
+
+ <ul>
+
+ <li>The element's <span
+ title="concept-fe-checked">checkedness</span> state is set to
+ true (for whatever reason).</li>
+
+ <li>The element's <code title="attr-input-name">name</code>
+ attribute is added, removed, or changes value<!-- XXX setting to
+ the same value? -->.</li>
+
+ <li>The element's <span>form owner</span> changes.</li>
+
+ </ul>
+
+ <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-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-input-autocomplete">autocomplete</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-file">File</dfn> state</h6>
<p>When an <code>input</code> element's <code
@@ -51283,6 +51381,16 @@
in another namespace that is not defined by that namespace's
specification is <code>Element</code>.</p>
+ <p>When a <span title="category-reset">resettable</span> element is
+ created in this manner, its <span
+ title="concept-form-reset-control">reset algorithm</span> must be
+ invoked once the attributes are set. (This initializes the element's
+ <span title="concept-fe-value">value</span> and <span
+ title="concept-fe-checked">checkedness</span> based on the element's
+ attributes.)</p>
+
+ <hr>
+
<p>When the steps below require the UA to <dfn>insert an HTML
element</dfn> for a token, the UA must first <span>create an element
for the token</span> in the <span>HTML namespace</span>, and then