[html5] r2368 - [ac] (0) WF2: Define conformance criteria for <input value>. (credit: hs) Also, [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Oct 27 18:12:54 PDT 2008


Author: ianh
Date: 2008-10-27 18:12:53 -0700 (Mon, 27 Oct 2008)
New Revision: 2368

Modified:
   index
   source
Log:
[ac] (0) WF2: Define conformance criteria for <input value>. (credit: hs) Also, remove a redundant conformance requirement for contentEditable. (credit: gl)

Modified: index
===================================================================
--- index	2008-10-24 12:31:46 UTC (rev 2367)
+++ index	2008-10-28 01:12:53 UTC (rev 2368)
@@ -16,7 +16,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 24 October 2008</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 28 October 2008</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -24017,6 +24017,10 @@
   FEED (LF) or U+000D CARRIAGE RETURN (CR) characters into the
   element's <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that contains no U+000A LINE FEED (LF)
+  or U+000D CARRIAGE RETURN (CR) characters.</p>
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> <a href=#strip-line-breaks>Strip line breaks</a> from the <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
 
@@ -24081,15 +24085,22 @@
   agents must not allow users to insert U+000A LINE FEED (LF) or
   U+000D CARRIAGE RETURN (CR) characters into the <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-e-mail-address>valid e-mail
+  address</a>.</p>
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> <a href=#strip-line-breaks>Strip line breaks</a> from the <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
 
-  <p><strong>Constraint validation:</strong> While the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element does not match
-  the <code>addr-spec</code> token defined in RFC 2822 section 3.4.1,
+  <p><strong>Constraint validation:</strong> While the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element is not a
+  <a href=#valid-e-mail-address>valid e-mail address</a>, the element is <a href=#suffering-from-a-type-mismatch>suffering
+  from a type mismatch</a>.</p>
+
+  <p>A <dfn id=valid-e-mail-address>valid e-mail address</dfn> is a string that matches the
+  <code>addr-spec</code> token defined in RFC 2822 section 3.4.1,
   excluding the <code>CFWS</code> subtoken everywhere, and excluding
   the <code>FWS</code> subtoken everywhere except in the
-  <code>quoted-string</code> subtoken, the element is <a href=#suffering-from-a-type-mismatch>suffering
-  from a type mismatch</a>. <a href=#refsRFC2822>[RFC2822]</a></p>
+  <code>quoted-string</code> subtoken. <a href=#refsRFC2822>[RFC2822]</a></p>
 
   <div class=bookkeeping>
 
@@ -24153,6 +24164,9 @@
   agents must not allow users to insert U+000A LINE FEED (LF) or
   U+000D CARRIAGE RETURN (CR) characters into the <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-url>valid URL</a>.</p>
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> <a href=#strip-line-breaks>Strip line breaks</a> from the <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
 
@@ -24219,6 +24233,10 @@
   by the user. User agents must not allow users to insert U+000A LINE
   FEED (LF) or U+000D CARRIAGE RETURN (CR) characters into the <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that contains no U+000A LINE FEED (LF)
+  or U+000D CARRIAGE RETURN (CR) characters.</p>
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> <a href=#strip-line-breaks>Strip line breaks</a> from the <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
 
@@ -24285,6 +24303,11 @@
   UTC date and time string</a> representing the user's
   selection. User agents should allow the user to set the <a href=#concept-fe-value title=concept-fe-value>value</a> to the empty string.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-utc-date-and-time-string>valid UTC date and time
+  string</a>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> If the <a href=#concept-fe-value title=concept-fe-value>value</a>
   of the element is not a <a href=#valid-utc-date-and-time-string>valid UTC date and time string</a>,
@@ -24399,6 +24422,11 @@
   a <a href=#valid-date-string>valid date string</a> representing the user's
   selection. User agents should allow the user to set the <a href=#concept-fe-value title=concept-fe-value>value</a> to the empty string.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-date-string>valid date
+  string</a>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> If the <a href=#concept-fe-value title=concept-fe-value>value</a>
   of the element is not a <a href=#valid-date-string>valid date string</a>, then set it
@@ -24516,6 +24544,11 @@
   a <a href=#valid-month-string>valid month string</a> representing the user's
   selection. User agents should allow the user to set the <a href=#concept-fe-value title=concept-fe-value>value</a> to the empty string.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-month-string>valid month
+  string</a>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> If the <a href=#concept-fe-value title=concept-fe-value>value</a>
   of the element is not a <a href=#valid-month-string>valid month string</a>, then set it
@@ -24633,6 +24666,11 @@
   a <a href=#valid-week-string>valid week string</a> representing the user's
   selection. User agents should allow the user to set the <a href=#concept-fe-value title=concept-fe-value>value</a> to the empty string.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-week-string>valid week
+  string</a>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> If the <a href=#concept-fe-value title=concept-fe-value>value</a>
   of the element is not a <a href=#valid-week-string>valid week string</a>, then set it
@@ -24750,6 +24788,11 @@
   a <a href=#valid-time-string>valid time string</a> representing the user's
   selection. User agents should allow the user to set the <a href=#concept-fe-value title=concept-fe-value>value</a> to the empty string.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-time-string>valid time
+  string</a>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> If the <a href=#concept-fe-value title=concept-fe-value>value</a>
   of the element is not a <a href=#valid-time-string>valid time string</a>, then set it
@@ -24865,6 +24908,11 @@
   <a href=#valid-local-date-and-time-string>valid local date and time string</a> representing the
   user's selection. User agents should allow the user to set the <a href=#concept-fe-value title=concept-fe-value>value</a> to the empty string.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-local-date-and-time-string>valid local date and
+  time string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> If the <a href=#concept-fe-value title=concept-fe-value>value</a>
   of the element is not a <a href=#valid-local-date-and-time-string>valid local date and time
@@ -24966,6 +25014,11 @@
   floating point number</a> representing the user's selection. User
   agents should allow the user to set the <a href=#concept-fe-value title=concept-fe-value>value</a> to the empty string.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-floating-point-number>valid floating point
+  number</a>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> If the <a href=#concept-fe-value title=concept-fe-value>value</a>
   of the element is not a <a href=#valid-floating-point-number>valid floating point number</a>,
@@ -25070,6 +25123,11 @@
   floating point number</a> representing the user's selection. User
   agents must not allow the user to set the <a href=#concept-fe-value title=concept-fe-value>value</a> to the empty string.</p>
 
+  <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
+  specified, must have a value that is a <a href=#valid-floating-point-number>valid floating point
+  number</a>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
   follows:</strong> If the <a href=#concept-fe-value title=concept-fe-value>value</a>
   of the element is not a <a href=#valid-floating-point-number>valid floating point number</a>,
@@ -39446,16 +39504,11 @@
   <h3 id=contenteditable><span class=secno>6.7 </span>The <code title=attr-contenteditable><a href=#attr-contenteditable>contenteditable</a></code> attribute</h3>
 
   <p>The <dfn id=attr-contenteditable title=attr-contenteditable><code>contenteditable</code></dfn>
-  attribute is a common attribute. User agents must support this
-  attribute on all <a href=#html-elements>HTML elements</a>.</p>
-
-  <p>The <code title=attr-contenteditable><a href=#attr-contenteditable>contenteditable</a></code>
   attribute is an <a href=#enumerated-attribute>enumerated attribute</a> whose keywords are
-  the empty string, <code title="">true</code>, and <code title="">false</code>. The empty string and the <code title="">true</code> keyword map to the <i>true</i> state. The
-  <code title="">false</code> keyword maps to the <i>false</i>
-  state. In addition, there is a third state, the <i>inherit</i>
-  state, which is the <i>missing value default</i> (and the
-  <i>invalid value default</i>).</p>
+  the empty string, <code title="">true</code>, and <code title="">false</code>. The empty string and the <code title="">true</code> keyword map to the <i>true</i> state. The <code title="">false</code> keyword maps to the <i>false</i> state. In
+  addition, there is a third state, the <i>inherit</i> state, which is
+  the <i>missing value default</i> (and the <i>invalid value
+  default</i>).</p>
 
   <p>If an <a href=#html-elements title="HTML elements">HTML element</a> has a <code title=attr-contenteditable><a href=#attr-contenteditable>contenteditable</a></code> attribute set to
   the true state, or it has its <code title=attr-contenteditable><a href=#attr-contenteditable>contenteditable</a></code> attribute set to
@@ -52932,8 +52985,8 @@
   Eira Monstad, Elliotte Harold, Eric Carlson, Eric Law, Erik
   Arvidsson, Evan Martin, Evan Prodromou, fantasai, Felix Sasaki,
   Franck 'Shift' Quélain, Garrett Smith, Geoffrey Garen,
-  Geoffrey Sneddon, Håkon Wium Lie, Henri Sivonen, Henrik Lied,
-  Henry Mason, Hugh Winkler, Ignacio Javier, Ivo Emanuel
+  Geoffrey Sneddon, George Lund, Håkon Wium Lie, Henri Sivonen,
+  Henrik Lied, Henry Mason, Hugh Winkler, Ignacio Javier, Ivo Emanuel
   Gonçalves, J. King, Jacques Distler, James Graham, James
   Justin Harrell, James M Snell, James Perrett, Jan-Klaas Kollhof,
   Jason White, Jasper Bryant-Greene, Jeff Cutsinger, Jeff Schiller,

Modified: source
===================================================================
--- source	2008-10-24 12:31:46 UTC (rev 2367)
+++ source	2008-10-28 01:12:53 UTC (rev 2368)
@@ -26726,6 +26726,10 @@
   FEED (LF) or U+000D CARRIAGE RETURN (CR) characters into the
   element's <span title="concept-fe-value">value</span>.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that contains no U+000A LINE FEED (LF)
+  or U+000D CARRIAGE RETURN (CR) characters.</p>
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> <span>Strip line breaks</span> from the <span
   title="concept-fe-value">value</span>.</p>
@@ -26798,17 +26802,24 @@
   U+000D CARRIAGE RETURN (CR) characters into the <span
   title="concept-fe-value">value</span>.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid e-mail
+  address</span>.</p>
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> <span>Strip line breaks</span> from the <span
   title="concept-fe-value">value</span>.</p>
 
   <p><strong>Constraint validation:</strong> While the <span
-  title="concept-fe-value">value</span> of the element does not match
-  the <code>addr-spec</code> token defined in RFC 2822 section 3.4.1,
+  title="concept-fe-value">value</span> of the element is not a
+  <span>valid e-mail address</span>, the element is <span>suffering
+  from a type mismatch</span>.</p>
+
+  <p>A <dfn>valid e-mail address</dfn> is a string that matches the
+  <code>addr-spec</code> token defined in RFC 2822 section 3.4.1,
   excluding the <code>CFWS</code> subtoken everywhere, and excluding
   the <code>FWS</code> subtoken everywhere except in the
-  <code>quoted-string</code> subtoken, the element is <span>suffering
-  from a type mismatch</span>. <a
+  <code>quoted-string</code> subtoken. <a
   href="#refsRFC2822">[RFC2822]</a></p>
 
   <div class="bookkeeping">
@@ -26879,6 +26890,9 @@
   U+000D CARRIAGE RETURN (CR) characters into the <span
   title="concept-fe-value">value</span>.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid URL</span>.</p>
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> <span>Strip line breaks</span> from the <span
   title="concept-fe-value">value</span>.</p>
@@ -26952,6 +26966,10 @@
   FEED (LF) or U+000D CARRIAGE RETURN (CR) characters into the <span
   title="concept-fe-value">value</span>.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that contains no U+000A LINE FEED (LF)
+  or U+000D CARRIAGE RETURN (CR) characters.</p>
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> <span>Strip line breaks</span> from the <span
   title="concept-fe-value">value</span>.</p>
@@ -27027,6 +27045,11 @@
   selection. User agents should allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid UTC date and time
+  string</span>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> If the <span title="concept-fe-value">value</span>
   of the element is not a <span>valid UTC date and time string</span>,
@@ -27164,6 +27187,11 @@
   selection. User agents should allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid date
+  string</span>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> If the <span title="concept-fe-value">value</span>
   of the element is not a <span>valid date string</span>, then set it
@@ -27299,6 +27327,11 @@
   selection. User agents should allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid month
+  string</span>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> If the <span title="concept-fe-value">value</span>
   of the element is not a <span>valid month string</span>, then set it
@@ -27436,6 +27469,11 @@
   selection. User agents should allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid week
+  string</span>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> If the <span title="concept-fe-value">value</span>
   of the element is not a <span>valid week string</span>, then set it
@@ -27572,6 +27610,11 @@
   selection. User agents should allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid time
+  string</span>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> If the <span title="concept-fe-value">value</span>
   of the element is not a <span>valid time string</span>, then set it
@@ -27704,6 +27747,11 @@
   user's selection. User agents should allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid local date and
+  time string</span>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> If the <span title="concept-fe-value">value</span>
   of the element is not a <span>valid local date and time
@@ -27819,6 +27867,11 @@
   agents should allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid floating point
+  number</span>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> If the <span title="concept-fe-value">value</span>
   of the element is not a <span>valid floating point number</span>,
@@ -27933,6 +27986,11 @@
   agents must not allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
+  <p>The <code title="attr-input-value">value</code> attribute, if
+  specified, must have a value that is a <span>valid floating point
+  number</span>.</p> <!-- ok to set out-of-range value, we never know
+  when we might have to represent bogus input -->
+
   <p><strong>The <span>value sanitization algorithm</span> is as
   follows:</strong> If the <span title="concept-fe-value">value</span>
   of the element is not a <span>valid floating point number</span>,
@@ -44852,18 +44910,14 @@
 
   <p>The <dfn
   title="attr-contenteditable"><code>contenteditable</code></dfn>
-  attribute is a common attribute. User agents must support this
-  attribute on all <span>HTML elements</span>.</p>
-
-  <p>The <code title="attr-contenteditable">contenteditable</code>
   attribute is an <span>enumerated attribute</span> whose keywords are
   the empty string, <code title="">true</code>, and <code
   title="">false</code>. The empty string and the <code
-  title="">true</code> keyword map to the <i>true</i> state. The
-  <code title="">false</code> keyword maps to the <i>false</i>
-  state. In addition, there is a third state, the <i>inherit</i>
-  state, which is the <i>missing value default</i> (and the
-  <i>invalid value default</i>).</p>
+  title="">true</code> keyword map to the <i>true</i> state. The <code
+  title="">false</code> keyword maps to the <i>false</i> state. In
+  addition, there is a third state, the <i>inherit</i> state, which is
+  the <i>missing value default</i> (and the <i>invalid value
+  default</i>).</p>
 
   <p>If an <span title="HTML elements">HTML element</span> has a <code
   title="attr-contenteditable">contenteditable</code> attribute set to
@@ -57674,8 +57728,8 @@
   Eira Monstad, Elliotte Harold, Eric Carlson, Eric Law, Erik
   Arvidsson, Evan Martin, Evan Prodromou, fantasai, Felix Sasaki,
   Franck 'Shift' Quélain, Garrett Smith, Geoffrey Garen,
-  Geoffrey Sneddon, Håkon Wium Lie, Henri Sivonen, Henrik Lied,
-  Henry Mason, Hugh Winkler, Ignacio Javier, Ivo Emanuel
+  Geoffrey Sneddon, George Lund, Håkon Wium Lie, Henri Sivonen,
+  Henrik Lied, Henry Mason, Hugh Winkler, Ignacio Javier, Ivo Emanuel
   Gonçalves, J. King, Jacques Distler, James Graham, James
   Justin Harrell, James M Snell, James Perrett, Jan-Klaas Kollhof,
   Jason White, Jasper Bryant-Greene, Jeff Cutsinger, Jeff Schiller,




More information about the Commit-Watchers mailing list