[html5] r5236 - [giow] (2) Make <textarea> support 'white-space.

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 4 13:56:09 PDT 2010


Author: ianh
Date: 2010-08-04 13:56:08 -0700 (Wed, 04 Aug 2010)
New Revision: 5236

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make <textarea> support 'white-space.

Modified: complete.html
===================================================================
--- complete.html	2010-08-04 20:25:38 UTC (rev 5235)
+++ complete.html	2010-08-04 20:56:08 UTC (rev 5236)
@@ -86637,6 +86637,7 @@
 
 nobr { white-space: nowrap; }
 listing, plaintext, pre, xmp { white-space: pre; }
+textarea { white-space: pre-wrap; }
 
 ol { list-style-type: decimal; }
 
@@ -88376,9 +88377,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-marquee {
-  binding: <i title="">marquee</i>;
-}</pre>
+marquee { binding: <i title="">marquee</i>; }</pre>
 
   <p>When the <i title="">marquee</i> binding applies to a
   <code><a href=#the-marquee-element>marquee</a></code> element, while the element is <a href=#concept-marquee-on title=concept-marquee-on>turned on</a>, the element is expected
@@ -88542,9 +88541,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-meter {
-  binding: <i title="">meter</i>;
-}</pre>
+meter { binding: <i title="">meter</i>; }</pre>
 
   <p>When the <i title="">meter</i> binding applies to a
   <code><a href=#the-meter-element>meter</a></code> element, the element is expected to render as an
@@ -88575,9 +88572,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-progress {
-  binding: <i title="">progress</i>;
-}</pre>
+progress { binding: <i title="">progress</i>; }</pre>
 
   <p>When the <i title="">progress</i> binding applies to a
   <code><a href=#the-progress-element>progress</a></code> element, the element is expected to render as
@@ -88614,9 +88609,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-select {
-  binding: <i title="">select</i>;
-}</pre>
+select { binding: <i title="">select</i>; }</pre>
 
   <p>When the <i title="">select</i> binding applies to a
   <code><a href=#the-select-element>select</a></code> element whose <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code> attribute is present,
@@ -88669,7 +88662,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-textarea { binding: <i title="">textarea</i>; }</pre>
+textarea { binding: <i title="">textarea</i>; white-space: pre-wrap; }</pre>
 
   <p>When the <i title="">textarea</i> binding applies to a
   <code><a href=#the-textarea-element>textarea</a></code> element, the element is expected to render as
@@ -88707,10 +88700,14 @@
   number of lines specified the element's <a href=#attr-textarea-rows-value title=attr-textarea-rows-value>character height</a>, plus the
   height of a scrollbar in CSS pixels.</p>
 
-  <p>For historical reasons, if the element has a <code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code> attribute whose value is an
-  <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title=attr-textarea-wrap-off>off</code>", then the user agent is
-  expected to not wrap the rendered value; otherwise, the value of the
-  control is expected to be wrapped to the width of the control.</p>
+  <p>User agents are expected to apply the 'white-space' CSS property
+  to <code><a href=#the-textarea-element>textarea</a></code> elements. For historical reasons, if the
+  element has a <code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code> attribute
+  whose value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
+  string "<code title=attr-textarea-wrap-off>off</code>", then the
+  user agent is expected to treat the attribute as a
+  <span>presentational hint</span> setting the element's 'white-space'
+  property to 'pre'.</p>
 
   </div>
 

Modified: index
===================================================================
--- index	2010-08-04 20:25:38 UTC (rev 5235)
+++ index	2010-08-04 20:56:08 UTC (rev 5236)
@@ -79679,6 +79679,7 @@
 
 nobr { white-space: nowrap; }
 listing, plaintext, pre, xmp { white-space: pre; }
+textarea { white-space: pre-wrap; }
 
 ol { list-style-type: decimal; }
 
@@ -81418,9 +81419,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-marquee {
-  binding: <i title="">marquee</i>;
-}</pre>
+marquee { binding: <i title="">marquee</i>; }</pre>
 
   <p>When the <i title="">marquee</i> binding applies to a
   <code><a href=#the-marquee-element>marquee</a></code> element, while the element is <a href=#concept-marquee-on title=concept-marquee-on>turned on</a>, the element is expected
@@ -81584,9 +81583,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-meter {
-  binding: <i title="">meter</i>;
-}</pre>
+meter { binding: <i title="">meter</i>; }</pre>
 
   <p>When the <i title="">meter</i> binding applies to a
   <code><a href=#the-meter-element>meter</a></code> element, the element is expected to render as an
@@ -81617,9 +81614,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-progress {
-  binding: <i title="">progress</i>;
-}</pre>
+progress { binding: <i title="">progress</i>; }</pre>
 
   <p>When the <i title="">progress</i> binding applies to a
   <code><a href=#the-progress-element>progress</a></code> element, the element is expected to render as
@@ -81656,9 +81651,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-select {
-  binding: <i title="">select</i>;
-}</pre>
+select { binding: <i title="">select</i>; }</pre>
 
   <p>When the <i title="">select</i> binding applies to a
   <code><a href=#the-select-element>select</a></code> element whose <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code> attribute is present,
@@ -81711,7 +81704,7 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-textarea { binding: <i title="">textarea</i>; }</pre>
+textarea { binding: <i title="">textarea</i>; white-space: pre-wrap; }</pre>
 
   <p>When the <i title="">textarea</i> binding applies to a
   <code><a href=#the-textarea-element>textarea</a></code> element, the element is expected to render as
@@ -81749,10 +81742,14 @@
   number of lines specified the element's <a href=#attr-textarea-rows-value title=attr-textarea-rows-value>character height</a>, plus the
   height of a scrollbar in CSS pixels.</p>
 
-  <p>For historical reasons, if the element has a <code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code> attribute whose value is an
-  <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title=attr-textarea-wrap-off>off</code>", then the user agent is
-  expected to not wrap the rendered value; otherwise, the value of the
-  control is expected to be wrapped to the width of the control.</p>
+  <p>User agents are expected to apply the 'white-space' CSS property
+  to <code><a href=#the-textarea-element>textarea</a></code> elements. For historical reasons, if the
+  element has a <code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code> attribute
+  whose value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
+  string "<code title=attr-textarea-wrap-off>off</code>", then the
+  user agent is expected to treat the attribute as a
+  <span>presentational hint</span> setting the element's 'white-space'
+  property to 'pre'.</p>
 
   </div>
 

Modified: source
===================================================================
--- source	2010-08-04 20:25:38 UTC (rev 5235)
+++ source	2010-08-04 20:56:08 UTC (rev 5236)
@@ -98863,6 +98863,7 @@
 
 nobr { white-space: nowrap; }
 listing, plaintext, pre, xmp { white-space: pre; }
+textarea { white-space: pre-wrap; }
 
 ol { list-style-type: decimal; }
 
@@ -100863,9 +100864,7 @@
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
-marquee {
-  binding: <i title="">marquee</i>;
-}</pre>
+marquee { binding: <i title="">marquee</i>; }</pre>
 
   <p>When the <i title="">marquee</i> binding applies to a
   <code>marquee</code> element, while the element is <span
@@ -101060,9 +101059,7 @@
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
-meter {
-  binding: <i title="">meter</i>;
-}</pre>
+meter { binding: <i title="">meter</i>; }</pre>
 
   <p>When the <i title="">meter</i> binding applies to a
   <code>meter</code> element, the element is expected to render as an
@@ -101093,9 +101090,7 @@
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
-progress {
-  binding: <i title="">progress</i>;
-}</pre>
+progress { binding: <i title="">progress</i>; }</pre>
 
   <p>When the <i title="">progress</i> binding applies to a
   <code>progress</code> element, the element is expected to render as
@@ -101132,9 +101127,7 @@
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
-select {
-  binding: <i title="">select</i>;
-}</pre>
+select { binding: <i title="">select</i>; }</pre>
 
   <p>When the <i title="">select</i> binding applies to a
   <code>select</code> element whose <code
@@ -101195,7 +101188,7 @@
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
-textarea { binding: <i title="">textarea</i>; }</pre>
+textarea { binding: <i title="">textarea</i>; white-space: pre-wrap; }</pre>
 
   <p>When the <i title="">textarea</i> binding applies to a
   <code>textarea</code> element, the element is expected to render as
@@ -101239,12 +101232,14 @@
   title="attr-textarea-rows-value">character height</span>, plus the
   height of a scrollbar in CSS pixels.</p>
 
-  <p>For historical reasons, if the element has a <code
-  title="attr-textarea-wrap">wrap</code> attribute whose value is an
-  <span>ASCII case-insensitive</span> match for the string "<code
-  title="attr-textarea-wrap-off">off</code>", then the user agent is
-  expected to not wrap the rendered value; otherwise, the value of the
-  control is expected to be wrapped to the width of the control.</p>
+  <p>User agents are expected to apply the 'white-space' CSS property
+  to <code>textarea</code> elements. For historical reasons, if the
+  element has a <code title="attr-textarea-wrap">wrap</code> attribute
+  whose value is an <span>ASCII case-insensitive</span> match for the
+  string "<code title="attr-textarea-wrap-off">off</code>", then the
+  user agent is expected to treat the attribute as a
+  <span>presentational hint</span> setting the element's 'white-space'
+  property to 'pre'.</p>
 
   </div>
 




More information about the Commit-Watchers mailing list