NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 330 - WF2: Define conformance criteria for <input value>. (credit: hs) Also, remove a redundant conformance requirement for contentEditable. (credit: gl)
WF2: Define conformance criteria for <input value>. (credit: hs) Also, remove...
Status: RESOLVED DUPLICATE of bug 49
Product: Validator.nu
Classification: Unclassified
Component: Datatype library
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-24 22:01 CET by Henri Sivonen
Modified: 2011-05-24 13:43 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2008-11-24 22:01:37 CET
Index: source
===================================================================
--- source	(revision 2367)
+++ source	(revision 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&eacute;lain, Garrett Smith, Geoffrey Garen,
-  Geoffrey Sneddon, H&aring;kon Wium Lie, Henri Sivonen, Henrik Lied,
-  Henry Mason, Hugh Winkler, Ignacio Javier, Ivo Emanuel
+  Geoffrey Sneddon, George Lund, H&aring;kon Wium Lie, Henri Sivonen,
+  Henrik Lied, Henry Mason, Hugh Winkler, Ignacio Javier, Ivo Emanuel
   Gon&ccedil;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,
Comment 1 Henri Sivonen 2011-05-24 13:43:58 CEST

*** This bug has been marked as a duplicate of bug 49 ***