HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2320

File a bug

SVNBugCommentTime (UTC)
2320WF2: Define the ailments for a form control.2008-10-10 02:54
Index: source
===================================================================
--- source	(revision 2319)
+++ source	(revision 2320)
@@ -28319,8 +28319,8 @@
   <p>The <code title="attr-fs-action">action</code>, <code
   title="attr-fs-enctype">enctype</code>, <code
   title="attr-fs-method">method</code>, and <code
-  title="attr-fs-target">target</code> attributes control the form
-  submission.</p>
+  title="attr-fs-target">target</code> attributes are <span>attributes
+  for form submission</span>.</p>
 
   <div class="bookkeeping">
 
@@ -28516,8 +28516,8 @@
   <p>The <code title="attr-fs-action">action</code>, <code
   title="attr-fs-enctype">enctype</code>, <code
   title="attr-fs-method">method</code>, and <code
-  title="attr-fs-target">target</code> attributes control the form
-  submission.</p>
+  title="attr-fs-target">target</code> attributes are <span>attributes
+  for form submission</span>.</p>
 
   <div class="bookkeeping">
 
@@ -29491,8 +29491,8 @@
   title="attr-fs-action">action</code>, <code
   title="attr-fs-enctype">enctype</code>, <code
   title="attr-fs-method">method</code>, and <code
-  title="attr-fs-target">target</code> attributes control the form
-  submission.</p>
+  title="attr-fs-target">target</code> attributes are <span>attributes
+  for form submission</span>.</p>
 
   <p>The <dfn title="attr-button-value"><code>value</code></dfn>
   attribute gives the element's value for the purposes of form
@@ -30659,7 +30659,7 @@
 
 
 
-  <h4><dfn>Attributes for form submission</dfn></h4>
+  <h5><dfn title="attributes for form submission">Form submission</dfn></h5>
 
   <p>Attributes for form submission can be specified both on
   <code>form</code> elements and on elements that represent buttons
@@ -30776,29 +30776,70 @@
   constraint validation</span> if it is an <code>output</code> or
   <code>fieldset</code> element.)</p>
 
-  <p class="XXX">An element <dfn
-  title="concept-fv-valid">satisfies its constraints</dfn> if ...</p>
+  <p>An element can be constrained in various ways. The following is
+  the list of ailments that a form control can suffer from, making the
+  control invalid for the purposes of constraint valiation:</p>
 
-  <p class="XXX">... <dfn>suffering from being missing</dfn></p>
+  <dl>
 
-  <p class="XXX">... <dfn>suffering from a type
-  mismatch</dfn></p>
+   <dt> <dfn>Suffering from being missing</dfn> </dt>
 
-  <p class="XXX">... <dfn>suffering from a pattern
-  mismatch</dfn></p>
+   <dd> <p>When a control has no <span
+   title="concept-fe-value">value</span> but has a <code
+   title="">required</code> attribute (<code>input</code> <code
+   title="attr-input-required">required</code>, <code>textarea</code>
+   <code title="attr-textarea-required">required</code>). </p></dd>
 
-  <p class="XXX">... <dfn>suffering from being too
-  long</dfn></p>
+   <dt> <dfn>Suffering from a type mismatch</dfn> </dt>
 
-  <p class="XXX">... <dfn>suffering from an underflow</dfn></p>
+   <dd> <p>When a control that allows arbitrary user input has a <span
+   title="concept-fe-value">value</span> that is not in the correct
+   syntax (<span title="attr-input-type-email">E-mail</span>, <span
+   title="attr-input-type-url">URL</span>). </p></dd>
 
-  <p class="XXX">... <dfn>suffering from an overflow</dfn></p>
+   <dt> <dfn>Suffering from a pattern mismatch</dfn> </dt>
 
-  <p class="XXX">... <dfn>suffering from a step
-  mismatch</dfn></p>
+   <dd> <p>When a control has a <span
+   title="concept-fe-value">value</span> that doesn't satisfy the
+   <code title="attr-input-pattern">pattern</code> attribute.</p></dd>
 
+   <dt> <dfn>Suffering from being too long</dfn> </dt>
 
+   <dd> <p>When a control has a <span
+   title="concept-fe-value">value</span> that is too long for the
+   <span title="attr-fe-maxlength">form control <code
+   title="">maxlength</code> attribute</span> (<code>input</code>
+   <code title="attr-input-maxlength">maxlength</code>,
+   <code>textarea</code> <code
+   title="attr-textarea-maxlength">maxlength</code>). </p></dd>
 
+   <dt> <dfn>Suffering from an underflow</dfn> </dt>
+
+   <dd> <p>When a control has a <span
+   title="concept-fe-value">value</span> that is too low for the <code
+   title="attr-input-min">min</code> attribute.</p></dd>
+
+   <dt> <dfn>Suffering from an overflow</dfn> </dt>
+
+   <dd> <p>When a control has a <span
+   title="concept-fe-value">value</span> that is too high for the
+   <code title="attr-input-max">max</code> attribute.</p></dd>
+
+   <dt> <dfn>Suffering from a step mismatch</dfn> </dt>
+
+   <dd> <p>When a control has a <span
+   title="concept-fe-value">value</span> that doesn't fit the rules
+   given by the <code title="attr-input-step">step</code>
+   attribute.</p></dd>
+
+  </dl>
+
+  <p>An element <dfn title="concept-fv-valid">satisfies its
+  constraints</dfn> if it is not suffering from any of the above
+  ailments.</p>
+
+
+
   <h5>Constraint validation</h5>
 
   <p>When the user agent is required to <dfn>statically validate the

|