spec/Overview.html 1.1446 2273 WF2: required constraint. (whatwg r2273)

WF2: required constraint. (whatwg r2273)

barred the element from constraint validation
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#barred-from-constraint-validation
4.10.4.2.6 The maxlength attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#the-maxlength-attribute
suffering from an underflow
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#suffering-from-an-underflow
codepoint length
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#codepoint-length
for
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#attr-label-for
satisfies its constraints
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#concept-fv-valid
4.10.15.2 Constraint validation
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#constraint-validation
4.10.4.2.2 The list attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#the-list-attribute
4.10.4.1.14 Checkbox state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#checkbox-state
radio button group
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#radio-button-group
suffering from being too long
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#suffering-from-being-too-long
button
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#attr-input-type-button-keyword
4.10.4.1.1 Hidden state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#hidden-state
selected files
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#concept-input-type-file-selected
4.10.4.1 States of the type attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#states-of-the-type-attribute
default value
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#concept-input-value-default-range
4.10.4.2.4 The size attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#the-size-attribute
required
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#concept-input-required
4.10.4.1.17 Submit Button state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#submit-button-state
accept
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1446.html#attr-input-accept

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1445&r2=1.1446&f=h
http://html5.org/tools/web-apps-tracker?from=2272&to=2273

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1445
retrieving revision 1.1446
diff -u -d -r1.1445 -r1.1446
--- Overview.html 3 Oct 2008 01:08:40 -0000 1.1445
+++ Overview.html 3 Oct 2008 02:11:09 -0000 1.1446
@@ -18538,9 +18538,9 @@
 
    <p>For example, on platforms where clicking a checkbox label checks
    the checkbox, clicking the <code><a href=#the-label-element>label</a></code> in the following
-   snippet could trigger the user agent to <span>run synthetic click
-   activation steps on the <code><a href=#the-input-element>input</a></code> element, as if
-   the element itself had been triggered by the user:</span></p>
+   snippet could trigger the user agent to <a href=#run-synthetic-click-activation-steps>run synthetic click
+   activation steps</a> on the <code><a href=#the-input-element>input</a></code> element, as if
+   the element itself had been triggered by the user:</p>
 
    <pre>&lt;label&gt;&lt;input type=checkbox name=lost&gt; Lost&lt;/label&gt;</pre>
 
@@ -19054,7 +19054,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> &middot; <!-- Range -->
      <td class=yes> Yes <!-- Checkbox -->
 <!-- <td class="yes"> Yes      Radio Button -->
      <td class=yes> Yes <!-- File -->
@@ -19409,8 +19409,8 @@
   methods, are part of the <a href=#the-constraint-validation-api>constraint validation API</a>.<h5 id=states-of-the-type-attribute><span class=secno>4.10.4.1 </span>States of the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute</h5><!-- XXX for things that say "express it as a valid foo", make sure
   that valid foo is unambiguous, and if not, define a canonical
   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 --><h6 id=hidden-state><span class=secno>4.10.4.1.1 </span><dfn title=attr-input-type-hidden>Hidden</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#hidden-state title=attr-input-type-hidden>Hidden</a> state, the rules in
+  2008-01-01t00:00? should it be 1e2 or 100? --><!-- XXX for each of these, need to say when to fire oninput and
+  onchange --><h6 id=hidden-state><span class=secno>4.10.4.1.1 </span><dfn title=attr-input-type-hidden>Hidden</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#hidden-state title=attr-input-type-hidden>Hidden</a> state, the rules in
   this section apply.<p>The <code><a href=#the-input-element>input</a></code> element represents a value that is not
   intended to be examined or manipulated by the user.<p><strong>Constraint validation:</strong> If an <code><a href=#the-input-element>input</a></code>
   element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
@@ -20184,8 +20184,7 @@
   <code title=attr-input-autocomplete><a href=#attr-input-autocomplete>autocomplete</a></code>,
   <code title=attr-input-list><a href=#attr-input-list>list</a></code>,
   <code title=attr-input-max><a href=#attr-input-max>max</a></code>,
-  <code title=attr-input-min><a href=#attr-input-min>min</a></code>,
-  <code title=attr-input-required><a href=#attr-input-required>required</a></code>, and
+  <code title=attr-input-min><a href=#attr-input-min>min</a></code>, and
   <code title=attr-input-step><a href=#attr-input-step>step</a></code> content attributes;
   <code title=dom-input-list><a href=#dom-input-list>list</a></code>,
   <code title=dom-input-value><a href=#dom-input-value>value</a></code>,
@@ -20204,6 +20203,7 @@
   <code class=no-backref title=attr-fs-method><a href=#attr-fs-method>method</a></code>,
   <code class=no-backref title=attr-input-pattern><a href=#attr-input-pattern>pattern</a></code>,
   <code class=no-backref title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code>,
+  <code class=no-backref title=attr-input-required><a href=#attr-input-required>required</a></code>,
   <code class=no-backref title=attr-input-size><a href=#attr-input-size>size</a></code>,
   <code class=no-backref title=attr-input-src><a href=#attr-input-src>src</a></code>, and
   <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>.<p>The following DOM attributes do not apply to the element:
@@ -20214,7 +20214,8 @@
   element's <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state
   is true, the control represents a positive selection, and if it is
   false, a negative selection.<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
-  the user should allow the user to toggle the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state.</p><!-- XXX event timing; acivation behavior --><p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
+  the user should allow the user to toggle the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state.<p><strong>Constraint validation:</strong> If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i> and its <span title=concept-fe-checkedness>checkedness</span> is false, then the
+  element is <a href=#suffering-from-being-missing>suffering from being missing</a>.</p><!-- XXX event timing; activation behavior --><p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> Do nothing.<p>The following common <code><a href=#the-input-element>input</a></code> element content
   attributes and DOM attributes apply to the element:
   <code title=attr-input-checked><a href=#attr-input-checked>checked</a></code>, and
@@ -20268,7 +20269,7 @@
   </ul><p>A document must not contain an <code><a href=#the-input-element>input</a></code> element whose
   <i><a href=#radio-button-group>radio button group</a></i> contains only that element.<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
   the user should allow the user to set the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state of the
-  element to true.</p><!-- XXX event timing; acivation behavior --><p>When any of the following events occur, if the element's <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state is true after
+  element to true.<p>When any of the following events occur, if the element's <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state is true after
   the event, the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state of all the
   other elements in the same <i><a href=#radio-button-group>radio button group</a></i> must be set to
   false:</p><!-- XXX event firing order and timing --><ul><li>The element's <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state is set to
@@ -20280,7 +20281,11 @@
 
    <li>The element's <a href=#form-owner>form owner</a> changes.</li>
 
-  </ul><p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
+  </ul><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
+  <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
+  <span title=concept-fe-checkedness>checkedness</span> that is
+  false, then the element is <a href=#suffering-from-being-missing>suffering from being
+  missing</a>.</p><!-- XXX event timing; activation behavior --><p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> Do nothing.<p>The following common <code><a href=#the-input-element>input</a></code> element content
   attributes and DOM attributes apply to the element:
   <code title=attr-input-checked><a href=#attr-input-checked>checked</a></code> and
@@ -20334,7 +20339,9 @@
 
   </dl><p>The values must not be <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
   matches for any of the other values (i.e. duplicates are not
-  allowed).</p><!-- XXX the selected file(s) must either have the given types or be of the given category --><p class=XXX>... list of <dfn id=concept-input-type-file-selected title=concept-input-type-file-selected>selected files</dfn><h6 id=submit-button-state><span class=secno>4.10.4.1.17 </span><dfn title=attr-input-type-submit>Submit Button</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a> state, the rules
+  allowed).</p><!-- XXX the selected file(s) must either have the given types or be of the given category --><p class=XXX>... list of <dfn id=concept-input-type-file-selected title=concept-input-type-file-selected>selected files</dfn><p><strong>Constraint validation:</strong> If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i> and the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a> is
+  empty, then the element is <a href=#suffering-from-being-missing>suffering from being
+  missing</a>.<h6 id=submit-button-state><span class=secno>4.10.4.1.17 </span><dfn title=attr-input-type-submit>Submit Button</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a> state, the rules
   in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element represents a button that, when
   activated, submits the form. If the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, the button's label
   must be the value of that attribute; otherwise, it must be an
@@ -20497,7 +20504,13 @@
   attribute is a <a href=#boolean-attribute>boolean attribute</a>. When specified, the
   element is <i title=concept-input-immutable><a href=#concept-input-immutable>immutable</a></i>.<p><strong>Constraint validation:</strong> If the <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code> attribute is specified
   on an <code><a href=#the-input-element>input</a></code> element, the element is <a href=#barred-from-constraint-validation>barred from
-  constraint validation</a>.<h6 id=the-size-attribute><span class=secno>4.10.4.2.4 </span>The <code title=attr-input-size><a href=#attr-input-size>size</a></code> attribute</h6><p class=XXX>... <dfn id=attr-input-size title=attr-input-size><code>size</code></dfn><h6 id=the-required-attribute><span class=secno>4.10.4.2.5 </span>The <code title=attr-input-required><a href=#attr-input-required>required</a></code> attribute</h6><p class=XXX>... <dfn id=attr-input-required title=attr-input-required><code>required</code></dfn><h6 id=the-maxlength-attribute><span class=secno>4.10.4.2.6 </span>The <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute</h6><p>The <dfn id=attr-input-maxlength title=attr-input-maxlength><code>maxlength</code></dfn> attribute
+  constraint validation</a>.<h6 id=the-size-attribute><span class=secno>4.10.4.2.4 </span>The <code title=attr-input-size><a href=#attr-input-size>size</a></code> attribute</h6><p class=XXX>... <dfn id=attr-input-size title=attr-input-size><code>size</code></dfn><h6 id=the-required-attribute><span class=secno>4.10.4.2.5 </span>The <code title=attr-input-required><a href=#attr-input-required>required</a></code> attribute</h6><p>The <dfn id=attr-input-required title=attr-input-required><code>required</code></dfn>
+  attribute is a <a href=#boolean-attribute>boolean attribute</a>. When specified, the
+  element is <dfn id=concept-input-required title=concept-input-required><i>required</i></dfn>.<p><strong>Constraint validation:</strong> If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i>, and its <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute applies and is in
+  the mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>, and the
+  element's <a href=#concept-fe-value title=concept-fe-value>value</a> is the empty
+  string, then the element is <a href=#suffering-from-being-missing>suffering from being
+  missing</a>.<h6 id=the-maxlength-attribute><span class=secno>4.10.4.2.6 </span>The <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute</h6><p>The <dfn id=attr-input-maxlength title=attr-input-maxlength><code>maxlength</code></dfn> attribute
   allows authors to specify the maximum length allowed for user
   input.<p>The <dfn id=codepoint-length>codepoint length</dfn> of a string is the number of
   Unicode codepoints in that string.<p>If the attribute is specified, the attribute's value must be a
@@ -21073,7 +21086,7 @@
   validation">barred the element from constraint
   validation</dfn>. (For example, an element is <a href=#barred-from-constraint-validation>barred from
   constraint validation</a> if it is an <code><a href=#the-output-element>output</a></code> or
-  <code><a href=#the-fieldset-element>fieldset</a></code> element.)<p class=XXX>An element <dfn id=concept-fv-valid title=concept-fv-valid>satisfies its constraints</dfn> if ...<p class=XXX>... <dfn id=suffering-from-a-type-mismatch>suffering from a type
+  <code><a href=#the-fieldset-element>fieldset</a></code> element.)<p class=XXX>An element <dfn id=concept-fv-valid title=concept-fv-valid>satisfies its constraints</dfn> if ...<p class=XXX>... <dfn id=suffering-from-being-missing>suffering from being missing</dfn><p class=XXX>... <dfn id=suffering-from-a-type-mismatch>suffering from a type
   mismatch</dfn><p class=XXX>... <dfn id=suffering-from-being-too-long>suffering from being too
   long</dfn><p class=XXX>... <dfn id=suffering-from-an-underflow>suffering from an underflow</dfn><p class=XXX>... <dfn id=suffering-from-an-overflow>suffering from an overflow</dfn><p class=XXX>... <dfn id=suffering-from-a-step-mismatch>suffering from a step
   mismatch</dfn><h5 id=constraint-validation><span class=secno>4.10.15.2 </span>Constraint validation</h5><p>When the user agent is required to <dfn id=statically-validate-the-constraints>statically validate the

Received on Friday, 3 October 2008 02:15:58 UTC