- From: poot <cvsmail@w3.org>
- Date: Fri, 13 May 2011 17:06:09 -0400
- To: public-html-diffs@w3.org
hixie: Attempt to solve the maxlength vs tooLong problem (whatwg r6138)
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4936&r2=1.4937&f=h
http://html5.org/tools/web-apps-tracker?from=6137&to=6138
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4936
retrieving revision 1.4937
diff -u -d -r1.4936 -r1.4937
--- Overview.html 13 May 2011 05:54:02 -0000 1.4936
+++ Overview.html 13 May 2011 21:02:57 -0000 1.4937
@@ -38332,7 +38332,7 @@
the document was loaded.</p>
<pre><input maxlength="256" name="q" value="" autofocus>
<input type="submit" value="Search"></pre>
- </div><h5 id="limiting-user-input-length"><span class="secno">4.10.19.5 </span>Limiting user input length</h5><p>A <dfn id="attr-fe-maxlength" title="attr-fe-maxlength">form control <code title="">maxlength</code> attribute</dfn>, controlled by a <var title="">dirty value flag</var> declares a limit on the number of
+ </div><h5 id="limiting-user-input-length"><span class="secno">4.10.19.5 </span>Limiting user input length</h5><p>A <dfn id="attr-fe-maxlength" title="attr-fe-maxlength">form control <code title="">maxlength</code> attribute</dfn>, controlled by a <var title="">dirty value flag</var>, declares a limit on the number of
characters a user can input.<p>If an element has its <a href="#attr-fe-maxlength" title="attr-fe-maxlength">form
control <code title="">maxlength</code> attribute</a> specified,
the attribute's value must be a <a href="#valid-non-negative-integer">valid non-negative
@@ -38344,8 +38344,10 @@
allowed value length</a>.<div class="impl">
<p><strong>Constraint validation</strong>: If an element has a
- <a href="#maximum-allowed-value-length">maximum allowed value length</a>, and its <var title="">dirty value flag</var> is true, and the <a href="#code-point-length">code-point
- length</a> of the element's <a href="#concept-fe-value" title="concept-fe-value">value</a> is greater than the element's
+ <a href="#maximum-allowed-value-length">maximum allowed value length</a>, its <var title="">dirty
+ value flag</var> is true, its <a href="#concept-fe-value" title="concept-fe-value">value</a> was last changed by a user
+ edit (as opposed to a change made by a script), and the
+ <a href="#code-point-length">code-point length</a> of the element's <a href="#concept-fe-value" title="concept-fe-value">value</a> is greater than the element's
<a href="#maximum-allowed-value-length">maximum allowed value length</a>, then the element is
<a href="#suffering-from-being-too-long">suffering from being too long</a>.</p>
Received on Friday, 13 May 2011 21:06:11 UTC