HTML Standard Tracker


File a bug

SVNBugCommentTime (UTC)
2309WF2: textarea - newlines, rows='' and cols=''.2008-10-09 01:03
@@ -30123,20 +30123,29 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   <!-- XXX add selectionStart and company -->
   <p>The <code>textarea</code> element represents a multiline plain
   text edit control for the element's <span
   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
   can be edited by the user or not.</p>
   <p><strong>Constraint validation:</strong> If the <code
   title="attr-textarea-readonly">readonly</code> attribute is
   specified on a <code>textarea</code> element, the element is
   <span>barred from constraint validation</span>.</p>
@@ -30162,46 +30171,66 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   title="concept-textarea-dirty">dirty value flag</span> is false,
   then the element's <span title="concept-fe-value">value</span> must
   be set to the value of the element's <code>textContent</code> DOM
   <p>The <span title="concept-form-reset-control">reset
   algorithm</span> for <code>textarea</code> elements is to set the
   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>
   <p>The <code title="attr-fae-form">form</code> attribute is used to
   explicitly associate the <code>textarea</code> element with its
   <span>form owner</span>. The <code title="attr-fe-name">name</code>
   attribute represents the element's name. The <code
   title="attr-fe-disabled">disabled</code> attribute is used to make
   the control non-interactive and to prevent its value from being
   submitted. The <code title="attr-fe-autofocus">autofocus</code>
   attribute controls focus.</p>
   <p>The <dfn title="dom-textarea-accept"><code>accept</code></dfn>,
   <dfn title="dom-textarea-cols"><code>cols</code></dfn>, <dfn
   title="dom-textarea-required"><code>required</code></dfn>, <dfn
   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.
   The <dfn title="dom-textarea-readOnly"><code>readOnly</code></dfn>
   DOM attribute must <span>reflect</span> the <code
   title="attr-textarea-readonly">readonly</code> content
   <p>The <dfn title="dom-textarea-type"><code>type</code></dfn> DOM
   attribute must return the value "<code title="">textarea</code>".</p>