Skip to content
Permalink
Browse files

[e] (0) maxlength='' example

git-svn-id: http://svn.whatwg.org/webapps@3819 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Sep 13, 2009
1 parent 47deceb commit 52d14e3fe40d7b2a9759960fb5fdf71aeb34c33e
Showing with 22 additions and 0 deletions.
  1. +11 −0 index
  2. +11 −0 source
11 index
attribute must be equal to or less than the element's <a href=#maximum-allowed-value-length>maximum
allowed value length</a>.</p>

<div class=example>

<p>The following extract shows how a messaging client's text entry
could be arbitrarily restricted to a fixed number of characters,
thus forcing any conversion through this medium to be terse and
discouraging intelligent discourse.</p>

<pre>What are you doing? &lt;input name=status maxlength=140&gt;</pre>

</div>



<h6 id=the-pattern-attribute><span class=secno>4.10.4.2.8 </span>The <code title=attr-input-pattern><a href=#attr-input-pattern>pattern</a></code> attribute</h6>
11 source
attribute must be equal to or less than the element's <span>maximum
allowed value length</span>.</p>

<div class="example">

<p>The following extract shows how a messaging client's text entry
could be arbitrarily restricted to a fixed number of characters,
thus forcing any conversion through this medium to be terse and
discouraging intelligent discourse.</p>

<pre>What are you doing? &lt;input name=status maxlength=140></pre>

</div>



<h6>The <code title="attr-input-pattern">pattern</code> attribute</h6>

0 comments on commit 52d14e3

Please sign in to comment.
You can’t perform that action at this time.