- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 25 Sep 2008 01:05:10 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv31957 Modified Files: Overview.html Log Message: WF2: maxlength=''. (whatwg r2233) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1405 retrieving revision 1.1406 diff -u -d -r1.1405 -r1.1406 --- Overview.html 24 Sep 2008 11:37:30 -0000 1.1405 +++ Overview.html 25 Sep 2008 01:05:08 -0000 1.1406 @@ -27,7 +27,7 @@ for HTML and XHTML</h2> <h2 class="no-num no-toc" id=editors0><!-- "W3C Working Draft" --> - Editor's Draft <!--ZZZ-->24 September 2008</h2> + Editor's Draft <!--ZZZ-->25 September 2008</h2> <dl><!-- ZZZ: update the month/day <dt>This Version:</dt> @@ -199,7 +199,7 @@ <p>The W3C <a href="http://www.w3.org/html/wg/">HTML Working Group</a> is the W3C working group responsible for this specification's progress along - the W3C Recommendation track. <!--ZZZ:--> This specification is the 24 + the W3C Recommendation track. <!--ZZZ:--> This specification is the 25 September 2008 <!--ZZZ "Working Draft"-->Editor's Draft. <!--:ZZZ--></p> <!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --> <!-- relationship to other work (required) --> @@ -1143,6 +1143,10 @@ <li><a href="#the-readonly"><span class=secno>4.10.4.2.2. </span>The <code title=attr-input-readonly>readonly</code> attribute</a> + + <li><a href="#the-maxlength"><span class=secno>4.10.4.2.3. + </span>The <code title=attr-input-maxlength>maxlength</code> + attribute</a> </ul> <li><a href="#common5"><span class=secno>4.10.4.3. </span>Common @@ -28074,7 +28078,8 @@ <dd><code title=attr-input-max>max</code> - <dd><code title=attr-input-maxlength>maxlength</code> + <dd><code title=attr-input-maxlength><a + href="#maxlength0">maxlength</a></code> <dd><code title=attr-fs-method><a href="#method">method</a></code> @@ -28396,10 +28401,10 @@ title=attr-input-checked>checked</code>, <code title=attr-fs-enctype><a href="#enctype">enctype</a></code>, and <code title=attr-input-list>list</code>, <code title=attr-input-max>max</code>, - <code title=attr-input-maxlength>maxlength</code>, <code - title=attr-fs-method><a href="#method">method</a></code>, <code - title=attr-input-min>min</code>, <code - title=attr-input-pattern>pattern</code>, <code + <code title=attr-input-maxlength><a + href="#maxlength0">maxlength</a></code>, <code title=attr-fs-method><a + href="#method">method</a></code>, <code title=attr-input-min>min</code>, + <code title=attr-input-pattern>pattern</code>, <code title=attr-input-readonly><a href="#readonly0">readonly</a></code>, <code title=attr-input-required>required</code>, <code title=attr-input-size>size</code>, <code title=attr-input-src>src</code>, @@ -28816,7 +28821,8 @@ <td class=no> · <!-- Button --> <tr> - <th> <code title=attr-input-maxlength>maxlength</code> + <th> <code title=attr-input-maxlength><a + href="#maxlength0">maxlength</a></code> <td class=yes> Yes <!-- Text --> @@ -29653,8 +29659,8 @@ <p>The <dfn id=maxlength title=dom-input-maxLength><code>maxLength</code></dfn> DOM attribute must - <a href="#reflect">reflect</a> the <code - title=attr-input-maxlength>maxlength</code> content attribute. The <dfn + <a href="#reflect">reflect</a> the <code title=attr-input-maxlength><a + href="#maxlength0">maxlength</a></code> content attribute. The <dfn id=readonly title=dom-input-readOnly><code>readOnly</code></dfn> DOM attribute must <a href="#reflect">reflect</a> the <code title=attr-input-readonly><a href="#readonly0">readonly</a></code> content @@ -29717,8 +29723,8 @@ attributes, DOM attributes, and methods apply to the element: <code title=attr-input-autocomplete><a href="#autocomplete0">autocomplete</a></code>, <code - title=attr-input-list>list</code>, <code - title=attr-input-maxlength>maxlength</code>, <code + title=attr-input-list>list</code>, <code title=attr-input-maxlength><a + href="#maxlength0">maxlength</a></code>, <code title=attr-input-pattern>pattern</code>, <code title=attr-input-readonly><a href="#readonly0">readonly</a></code>, <code title=attr-input-required>required</code>, and <code @@ -29797,8 +29803,8 @@ element content attributes apply to the element: <code title=attr-input-autocomplete><a href="#autocomplete0">autocomplete</a></code>, <code - title=attr-input-maxlength>maxlength</code>, <code - title=attr-input-pattern>pattern</code>, <code + title=attr-input-maxlength><a href="#maxlength0">maxlength</a></code>, + <code title=attr-input-pattern>pattern</code>, <code title=attr-input-readonly><a href="#readonly0">readonly</a></code>, <code title=attr-input-required>required</code>, and <code title=attr-input-size>size</code>. @@ -29887,8 +29893,8 @@ attributes, DOM attributes, and methods apply to the element: <code title=attr-input-autocomplete><a href="#autocomplete0">autocomplete</a></code>, <code - title=attr-input-list>list</code>, <code - title=attr-input-maxlength>maxlength</code>, <code + title=attr-input-list>list</code>, <code title=attr-input-maxlength><a + href="#maxlength0">maxlength</a></code>, <code title=attr-input-pattern>pattern</code>, <code title=attr-input-readonly><a href="#readonly0">readonly</a></code>, <code title=attr-input-required>required</code>, and <code @@ -29973,8 +29979,8 @@ attributes, DOM attributes, and methods apply to the element: <code title=attr-input-autocomplete><a href="#autocomplete0">autocomplete</a></code>, <code - title=attr-input-list>list</code>, <code - title=attr-input-maxlength>maxlength</code>, <code + title=attr-input-list>list</code>, <code title=attr-input-maxlength><a + href="#maxlength0">maxlength</a></code>, <code title=attr-input-pattern>pattern</code>, <code title=attr-input-readonly><a href="#readonly0">readonly</a></code>, <code title=attr-input-required>required</code>, and <code @@ -30098,9 +30104,9 @@ href="#accept0">accept</a></code>, <code class=no-backref title=attr-input-alt>alt</code>, <code class=no-backref title=attr-input-checked>checked</code>, <code class=no-backref - title=attr-input-maxlength>maxlength</code>, <code class=no-backref - title=attr-input-pattern>pattern</code>, <code class=no-backref - title=attr-input-size>size</code>, <code class=no-backref + title=attr-input-maxlength><a href="#maxlength0">maxlength</a></code>, + <code class=no-backref title=attr-input-pattern>pattern</code>, <code + class=no-backref title=attr-input-size>size</code>, <code class=no-backref title=attr-input-src>src</code>, <code class=no-backref title=attr-fs-target><a href="#target3">target</a></code>, <code class=no-backref title=attr-fs-method><a href="#method">method</a></code>, @@ -30443,6 +30449,46 @@ element, the element is <a href="#barred">barred from constraint validation</a>. + <h6 id=the-maxlength><span class=secno>4.10.4.2.3. </span>The <code + title=attr-input-maxlength><a href="#maxlength0">maxlength</a></code> + attribute</h6> + + <p>The <dfn id=maxlength0 + title=attr-input-maxlength><code>maxlength</code></dfn> attribute allows + authors to specify the maximum length allowed for user input. + + <p>The <dfn id=codepoint>codepoint length</dfn> of a string is the number + of Unicode codepoints in that string. + + <p>If the attribute is specified, the attribute's value must be a <a + href="#valid">valid non-negative integer</a>. If the attribute is + specified and applying the <a href="#rules">rules for parsing non-negative + integers</a> to its value results in a number, then that number is the + element's <dfn id=maximum>maximum allowed value length</dfn>. If the + attribute is omitted or parsing its value results in an error, then there + is no <a href="#maximum">maximum allowed value length</a>. + + <p>If the <code><a href="#input0">input</a></code> element has a <a + href="#maximum">maximum allowed value length</a>, then the <a + href="#codepoint">codepoint length</a> of the value of the element's <code + title=attr-input-value><a href="#value9">value</a></code> attribute must + be equal to or less than the element's <a href="#maximum">maximum allowed + value length</a>. + + <p><strong>Constraint validation:</strong> If an <code><a + href="#input0">input</a></code> element has a <a href="#maximum">maximum + allowed value length</a>, and it is not <a href="#dirty0" + title=concept-input-dirty>dirty</a>, and the <a + href="#codepoint">codepoint length</a> of the element's <span + title=concept-input-value>value</span> is greater than the element's <a + href="#maximum">maximum allowed value length</a>, then the element is <a + href="#suffering0">suffering from being too long</a>. + + <p>User agents may prevent the user from setting the element's <span + title=concept-input-value>value</span> to a value whose <a + href="#codepoint">codepoint length</a> is greater than the element's <a + href="#maximum">maximum allowed value length</a>. + <h5 id=common5><span class=secno>4.10.4.3. </span>Common <code><a href="#input0">input</a></code> element APIs</h5> @@ -31301,6 +31347,9 @@ <p class=big-issue>... <dfn id=suffering>suffering from a type mismatch</dfn> + <p class=big-issue>... <dfn id=suffering0>suffering from being too + long</dfn> + <h5 id=constraint><span class=secno>4.10.15.2. </span>Constraint validation</h5> <p>When the user agent is required to <dfn id=statically>statically @@ -61278,4 +61327,5 @@ 2045's definition doesn't really help either, since it's part of something else, and doesn't mention whitespace, etc.) XXX * reference [UTC] in the various places that use it. + XXX * make codepoint vs code point consistent -->
Received on Thursday, 25 September 2008 01:05:45 UTC