Bugzilla – Bug 330
WF2: Define conformance criteria for <input value>. (credit: hs) Also, remove a redundant conformance requirement for contentEditable. (credit: gl)
Last modified: 2011-05-24 13:43:58 CEST
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é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,
*** This bug has been marked as a duplicate of bug 49 ***