Browse files

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

git-svn-id: http://svn.whatwg.org/webapps@2309 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 4956125 commit 8820a67d1990da57d45127e53d5a4ca1235f3cc4 @Hixie Hixie committed Oct 9, 2008
Showing with 61 additions and 6 deletions.
  1. +29 −3 index
  2. +32 −3 source
View
32 index
@@ -26876,6 +26876,14 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
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 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
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 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
<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
View
35 source
@@ -30130,6 +30130,15 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</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
@@ -30169,12 +30178,30 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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.

0 comments on commit 8820a67

Please sign in to comment.