[html5] r2309 - [] (0) WF2: textarea - newlines, rows='' and cols=''.

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 8 18:03:45 PDT 2008


Author: ianh
Date: 2008-10-08 18:03:44 -0700 (Wed, 08 Oct 2008)
New Revision: 2309

Modified:
   index
   source
Log:
[] (0) WF2: textarea - newlines, rows='' and cols=''.

Modified: index
===================================================================
--- index	2008-10-09 00:21:07 UTC (rev 2308)
+++ index	2008-10-09 01:03:44 UTC (rev 2309)
@@ -26876,6 +26876,14 @@
   text edit control for the element's <a href=#concept-fe-value title=concept-fe-value>value</a>. The contents of the control
   represent the control's default value.</p>
 
+  <p><em>Whenever</em> the element's <a href=#concept-fe-value title=concept-fe-value>value</a> 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 id=attr-textarea-readonly title=attr-textarea-readonly><code>readonly</code></dfn> attribute
   is a <a href=#boolean-attribute>boolean attribute</a> used to control whether the text
   can be edited by the user or not.</p>
@@ -26906,12 +26914,29 @@
   element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the value
   of the element's <code><a href=#textcontent>textContent</a></code> DOM attribute.</p>
 
-  <p class=XXX> ... <dfn id=attr-textarea-cols title=attr-textarea-cols><code>cols</code></dfn>
-  <p class=XXX> ... <dfn id=attr-textarea-rows title=attr-textarea-rows><code>rows</code></dfn>
+  <p>The <dfn id=attr-textarea-cols 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><a href=#attr-textarea-cols>cols</a></code> attribute
+  is specified, its value must be a <a href=#valid-non-negative-integer>valid non-negative
+  integer</a> greater than zero. If applying the <a href=#rules-for-parsing-non-negative-integers>rules for
+  parsing non-negative integers</a> 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 id=attr-textarea-rows title=attr-textarea-rows><code>rows</code></dfn>
+  attribute specifies the number of lines to show. If the <code title=attr-textarea-rows><a href=#attr-textarea-rows>rows</a></code> attribute is specified, its
+  value must be a <a href=#valid-non-negative-integer>valid non-negative integer</a> greater than
+  zero. If applying the <a href=#rules-for-parsing-non-negative-integers>rules for parsing non-negative
+  integers</a> 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 id=attr-textarea-wrap title=attr-textarea-wrap><code>wrap</code></dfn>
 
   <p class=XXX> ... <dfn id=attr-textarea-maxlength title=attr-textarea-maxlength><code>maxlength</code></dfn>
+
   <p class=XXX> ... <dfn id=attr-textarea-required title=attr-textarea-required><code>required</code></dfn>
 
   <p class=XXX> ... <dfn id=attr-textarea-accept title=attr-textarea-accept><code>accept</code></dfn>
@@ -26927,7 +26952,8 @@
   <p>The <dfn id=dom-textarea-accept title=dom-textarea-accept><code>accept</code></dfn>,
   <dfn id=dom-textarea-cols title=dom-textarea-cols><code>cols</code></dfn>, <dfn id=dom-textarea-required title=dom-textarea-required><code>required</code></dfn>, <dfn id=dom-textarea-rows title=dom-textarea-rows><code>rows</code></dfn>, and <dfn id=dom-textarea-wrap title=dom-textarea-wrap><code>wrap</code></dfn> attributes must
   <a href=#reflect>reflect</a> the respective content attributes of the same
-  name. The <dfn id=dom-textarea-maxlength title=dom-textarea-maxLength><code>maxLength</code></dfn> DOM
+  name. The <code title=dom-textarea-cols><a href=#dom-textarea-cols>cols</a></code> and <code title=dom-textarea-rows><a href=#dom-textarea-rows>rows</a></code> attributes are <a href=#limited-to-only-positive-non-zero-numbers>limited
+  to only positive non-zero numbers</a>. The <dfn id=dom-textarea-maxlength title=dom-textarea-maxLength><code>maxLength</code></dfn> DOM
   attribute must <a href=#reflect>reflect</a> the <code title=attr-textarea-maxlength><a href=#attr-textarea-maxlength>maxlength</a></code> content attribute.
   The <dfn id=dom-textarea-readonly title=dom-textarea-readOnly><code>readOnly</code></dfn>
   DOM attribute must <a href=#reflect>reflect</a> the <code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code> content

Modified: source
===================================================================
--- source	2008-10-09 00:21:07 UTC (rev 2308)
+++ source	2008-10-09 01:03:44 UTC (rev 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.




More information about the Commit-Watchers mailing list