Short URL: http://html5.org/r/2273
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2273 | WF2: required constraint. | 2008-10-03 02:11 |
Index: source
===================================================================
--- source (revision 2272)
+++ source (revision 2273)
@@ -25376,7 +25376,7 @@
<p>For example, on platforms where clicking a checkbox label checks
the checkbox, clicking the <code>label</code> in the following
snippet could trigger the user agent to <span>run synthetic click
- activation steps</psna> on the <code>input</code> element, as if
+ activation steps</span> on the <code>input</code> element, as if
the element itself had been triggered by the user:</p>
<pre><label><input type=checkbox name=lost> Lost</label></pre>
@@ -25989,7 +25989,7 @@
<!-- <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"> · <!-- Range -->
<td class="yes"> Yes <!-- Checkbox -->
<!-- <td class="yes"> Yes Radio Button -->
<td class="yes"> Yes <!-- File -->
@@ -26450,8 +26450,8 @@
serialisation. e.g. should it be 2008-01-01T00:00 or
2008-01-01t00:00? should it be 1e2 or 100? -->
- <!-- XXX for each of these, need to say when to fire oninput,
- onchange, and when required='' is satisfied -->
+ <!-- XXX for each of these, need to say when to fire oninput and
+ onchange -->
@@ -27747,8 +27747,7 @@
<code title="attr-input-autocomplete">autocomplete</code>,
<code title="attr-input-list">list</code>,
<code title="attr-input-max">max</code>,
- <code title="attr-input-min">min</code>,
- <code title="attr-input-required">required</code>, and
+ <code title="attr-input-min">min</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>,
@@ -27771,6 +27770,7 @@
<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-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>, and
<code class="no-backref" title="attr-fs-target">target</code>.</p>
@@ -27799,8 +27799,13 @@
the user should allow the user to toggle the <span
title="concept-fe-checked">checkedness</span> state.</p>
- <!-- XXX event timing; acivation behavior -->
+ <p><strong>Constraint validation:</strong> If the element is <i
+ title="concept-input-required">required</i> and its <span
+ title="concept-fe-checkedness">checkedness</span> is false, then the
+ element is <span>suffering from being missing</span>.</p>
+ <!-- XXX event timing; activation behavior -->
+
<p><strong>The <span>value sanitization algorithm</span> is as
follows:</strong> Do nothing.</p>
@@ -27891,8 +27896,6 @@
title="concept-fe-checked">checkedness</span> state of the
element to true.</p>
- <!-- XXX event timing; acivation behavior -->
-
<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
@@ -27914,6 +27917,15 @@
</ul>
+ <p><strong>Constraint validation:</strong> If the element 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-checkedness">checkedness</span> that is
+ false, then the element is <span>suffering from being
+ missing</span>.</p>
+
+ <!-- XXX event timing; activation behavior -->
+
<p><strong>The <span>value sanitization algorithm</span> is as
follows:</strong> Do nothing.</p>
@@ -28005,8 +28017,14 @@
<p class="XXX">... list of <dfn title="concept-input-type-file-selected">selected files</dfn></p>
+ <p><strong>Constraint validation:</strong> If the element is <i
+ title="concept-input-required">required</i> and the list of <span
+ title="concept-input-type-file-selected">selected files</span> is
+ empty, then the element is <span>suffering from being
+ missing</span>.</p>
+
<h6><dfn title="attr-input-type-submit">Submit Button</dfn> state</h6>
<p>When an <code>input</code> element's <code
@@ -28336,10 +28354,21 @@
<h6>The <code title="attr-input-required">required</code> attribute</h6>
- <p class="XXX">... <dfn title="attr-input-required"><code>required</code></dfn></p>
+ <p>The <dfn title="attr-input-required"><code>required</code></dfn>
+ attribute is a <span>boolean attribute</span>. When specified, the
+ element is <dfn
+ title="concept-input-required"><i>required</i></dfn>.</p>
+ <p><strong>Constraint validation:</strong> If the element is <i
+ title="concept-input-required">required</i>, and its <code
+ title="dom-input-value">value</code> DOM attribute applies and is in
+ the mode <span title="dom-input-value-value">value</span>, and the
+ element's <span title="concept-fe-value">value</span> is the empty
+ string, then the element is <span>suffering from being
+ missing</span>.</p>
+
<h6>The <code title="attr-input-maxlength">maxlength</code> attribute</h6>
<p>The <dfn
@@ -29364,6 +29393,8 @@
<p class="XXX">An element <dfn
title="concept-fv-valid">satisfies its constraints</dfn> if ...</p>
+ <p class="XXX">... <dfn>suffering from being missing</dfn></p>
+
<p class="XXX">... <dfn>suffering from a type
mismatch</dfn></p>