Skip to content
Permalink
Browse files
[giow] (1) Attempt to solve the maxlength vs tooLong problem
git-svn-id: http://svn.whatwg.org/webapps@6138 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 13, 2011
1 parent 755b5b2 commit 99c32bfaa362033b825cfda4d0f0a13527abf203
Showing 3 changed files with 16 additions and 10 deletions.
@@ -50188,7 +50188,7 @@ <h5 id=autofocusing-a-form-control><span class=secno>4.10.19.4 </span>Autofocusi

<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
<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>

<p>If an element has its <a href=#attr-fe-maxlength title=attr-fe-maxlength>form
@@ -50204,8 +50204,10 @@ <h5 id=limiting-user-input-length><span class=secno>4.10.19.5 </span>Limiting us
<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>

8 index
@@ -50208,7 +50208,7 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>

<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
<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>

<p>If an element has its <a href=#attr-fe-maxlength title=attr-fe-maxlength>form
@@ -50224,8 +50224,10 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
<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>

10 source
@@ -56508,7 +56508,7 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>

<p>A <dfn 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
title="">dirty value flag</var>, declares a limit on the number of
characters a user can input.</p>

<p>If an element has its <span title="attr-fe-maxlength">form
@@ -56524,9 +56524,11 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
<div class="impl">

<p><strong>Constraint validation</strong>: If an element has a
<span>maximum allowed value length</span>, and its <var
title="">dirty value flag</var> is true, and the <span>code-point
length</span> of the element's <span
<span>maximum allowed value length</span>, its <var title="">dirty
value flag</var> is true, its <span
title="concept-fe-value">value</span> was last changed by a user
edit (as opposed to a change made by a script), and the
<span>code-point length</span> of the element's <span
title="concept-fe-value">value</span> is greater than the element's
<span>maximum allowed value length</span>, then the element is
<span>suffering from being too long</span>.</p>

0 comments on commit 99c32bf

Please sign in to comment.