Short URL: http://html5.org/r/2309
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2309 | WF2: textarea - newlines, rows='' and cols=''. | 2008-10-09 01:03 |
Index: source =================================================================== --- source (revision 2308) +++ source (revision 2309) @@ -30130,6 +30130,15 @@ title="concept-fe-value">value</span>. The contents of the control represent the control's default value.</p> + <p><em>Whenever</em> the element's <span + title="concept-fe-value">value</span> is set or changed, for + whatever reason, every occurance of a U+000D CARRIAGE RETURN (CR) + character not followed by a U+000A LINE FEED (LF) character, and + every occurance of a U+000A LINE FEED (LF) character not proceeded + by a U+000D CARRIAGE RETURN (CR) character, must be replaced the + two-character string consisting of a U+000D CARRIAGE RETURN - U+000A + LINE FEED (CRLF) character pair.</p> + <p>The <dfn title="attr-textarea-readonly"><code>readonly</code></dfn> attribute is a <span>boolean attribute</span> used to control whether the text @@ -30169,12 +30178,30 @@ element's <span title="concept-fe-value">value</span> to the value of the element's <code>textContent</code> DOM attribute.</p> - <p class="XXX"> ... <dfn title="attr-textarea-cols"><code>cols</code></dfn> - <p class="XXX"> ... <dfn title="attr-textarea-rows"><code>rows</code></dfn> + <p>The <dfn title="attr-textarea-cols"><code>cols</code></dfn> + attribute specifies the expected maximum number of characters per + line. If the <code title="attr-textarea-cols">cols</code> attribute + is specified, its value must be a <span>valid non-negative + integer</span> greater than zero. If applying the <span>rules for + parsing non-negative integers</span> to the attribute's value + results in a number greater than zero, then the user agent may use + that number as a hint to the user as to how many characters the + server prefers per line (e.g. for visual user agents by making the + width of the control be that many characters).</p> + <p>The <dfn title="attr-textarea-rows"><code>rows</code></dfn> + attribute specifies the number of lines to show. If the <code + title="attr-textarea-rows">rows</code> attribute is specified, its + value must be a <span>valid non-negative integer</span> greater than + zero. If applying the <span>rules for parsing non-negative + integers</span> to the attribute's value results in a number greater + than zero, then visual user agents should set the height of the + control to the specified number of lines.</p> + <p class="XXX"> ... <dfn title="attr-textarea-wrap"><code>wrap</code></dfn> <p class="XXX"> ... <dfn title="attr-textarea-maxlength"><code>maxlength</code></dfn> + <p class="XXX"> ... <dfn title="attr-textarea-required"><code>required</code></dfn> <p class="XXX"> ... <dfn title="attr-textarea-accept"><code>accept</code></dfn> @@ -30194,7 +30221,9 @@ title="dom-textarea-rows"><code>rows</code></dfn>, and <dfn title="dom-textarea-wrap"><code>wrap</code></dfn> attributes must <span>reflect</span> the respective content attributes of the same - name. The <dfn + name. The <code title="dom-textarea-cols">cols</code> and <code + title="dom-textarea-rows">rows</code> attributes are <span>limited + to only positive non-zero numbers</span>. The <dfn title="dom-textarea-maxLength"><code>maxLength</code></dfn> DOM attribute must <span>reflect</span> the <code title="attr-textarea-maxlength">maxlength</code> content attribute.