- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 09 Oct 2008 01:03:52 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv11352 Modified Files: Overview.html Log Message: WF2: textarea - newlines, rows='' and cols=''. (whatwg r2309) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1481 retrieving revision 1.1482 diff -u -d -r1.1481 -r1.1482 --- Overview.html 9 Oct 2008 00:21:11 -0000 1.1481 +++ Overview.html 9 Oct 2008 01:03:49 -0000 1.1482 @@ -21737,7 +21737,13 @@ </dd> </dl><!-- XXX add selectionStart and company --><p>The <code><a href=#the-textarea-element>textarea</a></code> element represents a multiline plain 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>The <dfn id=attr-textarea-readonly title=attr-textarea-readonly><code>readonly</code></dfn> attribute + represent the control's default value.<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>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><strong>Constraint validation:</strong> If the <code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code> attribute is specified on a <code><a href=#the-textarea-element>textarea</a></code> element, the element is @@ -21753,12 +21759,25 @@ attribute.<p>The <a href=#concept-form-reset-control title=concept-form-reset-control>reset algorithm</a> for <code><a href=#the-textarea-element>textarea</a></code> elements is to set the 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 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 class=XXX> ... <dfn id=attr-textarea-wrap title=attr-textarea-wrap><code>wrap</code></dfn> + of the element's <code><a href=#textcontent>textContent</a></code> DOM attribute.<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>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 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> @@ -21772,7 +21791,8 @@ attribute controls focus.<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
Received on Thursday, 9 October 2008 01:04:01 UTC