Skip to content

Commit

Permalink
[giow] (1) Make it so that if you make one <input type=radio> require…
Browse files Browse the repository at this point in the history
…d, they all end up required.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11212

git-svn-id: http://svn.whatwg.org/webapps@6094 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 6, 2011
1 parent aa0f15b commit 5e47d9f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
12 changes: 7 additions & 5 deletions complete.html
Expand Up @@ -45346,11 +45346,11 @@ <h6 id=radio-button-state><span class=secno>4.10.7.1.17 </span><dfn title=attr-i
cancelable. Once this fires, the control is checked, end of story.
-->.</p>

<p><strong>Constraint validation</strong>: If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i> and all of the
<p><strong>Constraint validation</strong>: If an element in the
<i><a href=#radio-button-group>radio button group</a></i> is <i title=concept-input-required><a href=#concept-input-required>required</a></i>, and all of the
<code><a href=#the-input-element>input</a></code> elements in the <i><a href=#radio-button-group>radio button group</a></i> have a
<a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> that is
false, then the element is <a href=#suffering-from-being-missing>suffering from being
missing</a>.</p>
<a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> that is false,
then the element is <a href=#suffering-from-being-missing>suffering from being missing</a>.</p>

</div>

Expand Down Expand Up @@ -50370,7 +50370,9 @@ <h5 id=definitions><span class=secno>4.10.21.1 </span>Definitions</h5>

<dd> <p>When a control has no <a href=#concept-fe-value title=concept-fe-value>value</a> but has a <code title="">required</code> attribute (<code><a href=#the-input-element>input</a></code> <code title=attr-input-required><a href=#attr-input-required>required</a></code>, <code><a href=#the-select-element>select</a></code>
<code title=attr-select-required><a href=#attr-select-required>required</a></code>,
<code><a href=#the-textarea-element>textarea</a></code> <code title=attr-textarea-required><a href=#attr-textarea-required>required</a></code>). </dd>
<code><a href=#the-textarea-element>textarea</a></code> <code title=attr-textarea-required><a href=#attr-textarea-required>required</a></code>), or, in the case of
an element in a <i><a href=#radio-button-group>radio button group</a></i>, any of the other
elements in the group has a <code title=attr-input-required><a href=#attr-input-required>required</a></code> attribute. </dd>

<dt> <dfn id=suffering-from-a-type-mismatch>Suffering from a type mismatch</dfn> </dt>

Expand Down
12 changes: 7 additions & 5 deletions index
Expand Up @@ -45374,11 +45374,11 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
cancelable. Once this fires, the control is checked, end of story.
-->.</p>

<p><strong>Constraint validation</strong>: If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i> and all of the
<p><strong>Constraint validation</strong>: If an element in the
<i><a href=#radio-button-group>radio button group</a></i> is <i title=concept-input-required><a href=#concept-input-required>required</a></i>, and all of the
<code><a href=#the-input-element>input</a></code> elements in the <i><a href=#radio-button-group>radio button group</a></i> have a
<a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> that is
false, then the element is <a href=#suffering-from-being-missing>suffering from being
missing</a>.</p>
<a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> that is false,
then the element is <a href=#suffering-from-being-missing>suffering from being missing</a>.</p>

</div>

Expand Down Expand Up @@ -50398,7 +50398,9 @@ control.setSelectionRange(oldStart + prefix.length, oldEnd + prefix.length, oldD

<dd> <p>When a control has no <a href=#concept-fe-value title=concept-fe-value>value</a> but has a <code title="">required</code> attribute (<code><a href=#the-input-element>input</a></code> <code title=attr-input-required><a href=#attr-input-required>required</a></code>, <code><a href=#the-select-element>select</a></code>
<code title=attr-select-required><a href=#attr-select-required>required</a></code>,
<code><a href=#the-textarea-element>textarea</a></code> <code title=attr-textarea-required><a href=#attr-textarea-required>required</a></code>). </dd>
<code><a href=#the-textarea-element>textarea</a></code> <code title=attr-textarea-required><a href=#attr-textarea-required>required</a></code>), or, in the case of
an element in a <i><a href=#radio-button-group>radio button group</a></i>, any of the other
elements in the group has a <code title=attr-input-required><a href=#attr-input-required>required</a></code> attribute. </dd>

<dt> <dfn id=suffering-from-a-type-mismatch>Suffering from a type mismatch</dfn> </dt>

Expand Down
15 changes: 9 additions & 6 deletions source
Expand Up @@ -50778,12 +50778,12 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
cancelable. Once this fires, the control is checked, end of story.
-->.</p>

<p><strong>Constraint validation</strong>: If the element is <i
title="concept-input-required">required</i> and all of the
<p><strong>Constraint validation</strong>: If an element in the
<i>radio button group</i> is <i
title="concept-input-required">required</i>, and all of the
<code>input</code> elements in the <i>radio button group</i> have a
<span title="concept-fe-checked">checkedness</span> that is
false, then the element is <span>suffering from being
missing</span>.</p>
<span title="concept-fe-checked">checkedness</span> that is false,
then the element is <span>suffering from being missing</span>.</p>

</div>

Expand Down Expand Up @@ -56713,7 +56713,10 @@ control.setSelectionRange(oldStart + prefix.length, oldEnd + prefix.length, oldD
title="attr-input-required">required</code>, <code>select</code>
<code title="attr-select-required">required</code>,
<code>textarea</code> <code
title="attr-textarea-required">required</code>). </p></dd>
title="attr-textarea-required">required</code>), or, in the case of
an element in a <i>radio button group</i>, any of the other
elements in the group has a <code
title="attr-input-required">required</code> attribute. </p></dd>

<dt> <dfn>Suffering from a type mismatch</dfn> </dt>

Expand Down

0 comments on commit 5e47d9f

Please sign in to comment.