[html5] r2937 - [] (0) Make HTMLAreaElement stringify; make <textarea wrap=''> support the 'off' [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Mar 31 14:55:37 PDT 2009


Author: ianh
Date: 2009-03-31 14:55:36 -0700 (Tue, 31 Mar 2009)
New Revision: 2937

Modified:
   index
   source
Log:
[] (0) Make HTMLAreaElement stringify; make <textarea wrap=''> support the 'off' value.

Modified: index
===================================================================
--- index	2009-03-31 04:38:56 UTC (rev 2936)
+++ index	2009-03-31 21:55:36 UTC (rev 2937)
@@ -24722,7 +24722,7 @@
    <dd><code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code></dd>
    <dt>DOM interface:</dt>
    <dd>
-<pre class=idl>interface <dfn id=htmlareaelement>HTMLAreaElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
+<pre class=idl>[Stringifies=href] interface <dfn id=htmlareaelement>HTMLAreaElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
            attribute DOMString <a href=#dom-area-alt title=dom-area-alt>alt</a>;
            attribute DOMString <a href=#dom-area-coords title=dom-area-coords>coords</a>;
            attribute DOMString <a href=#dom-area-shape title=dom-area-shape>shape</a>;
@@ -24734,7 +24734,7 @@
            attribute DOMString <a href=#dom-area-media title=dom-area-media>media</a>;
            attribute DOMString <a href=#dom-area-hreflang title=dom-area-hreflang>hreflang</a>;
            attribute DOMString <a href=#dom-area-type title=dom-area-type>type</a>;
-};</pre>
+};</pre><!-- XXX also support the URL decomposition attributes -->
    </dd>
   </dl><p>The <code><a href=#the-area-element>area</a></code> element <a href=#represents>represents</a> either a
   hyperlink with some text and a corresponding area on an <a href=#image-map>image
@@ -33353,6 +33353,10 @@
   attribute is in the <a href=#attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</a> state, the <code title=attr-textarea-cols><a href=#attr-textarea-cols>cols</a></code> attribute must be
   specified.</p>
 
+  <!-- attr-textarea-wrap-off (attr-textarea-wrap-off-state): not
+  conforming; turns off the rendering of wrapping but otherwise acts
+  like 'soft' -->
+
   <div class=impl>
 
   <p>The element's <a href=#concept-fe-value title=concept-fe-value>value</a> is
@@ -61933,7 +61937,7 @@
   <code><a href=#the-textarea-element>textarea</a></code> element, the element is expected to render as
   an 'inline-block' box rendered as a multiline text field.</p>
 
-  <p>If the element has a <code title=attr-input-cols>cols</code>
+  <p>If the element has a <code title=attr-textarea-cols><a href=#attr-textarea-cols>cols</a></code>
   attribute, and parsing that attribute's value using the <a href=#rules-for-parsing-non-negative-integers>rules
   for parsing non-negative integers</a> doesn't generate an error,
   then the user agent is expected to use the attribute as a <a href=#presentational-hints title="presentational hints">presentational hint</a> for the
@@ -61942,15 +61946,20 @@
   algorithm to the value of the attribute and then adding the width of
   a scroll bar.</p>
 
-  <p>If the element has a <code title=attr-input-rows>rows</code>
+  <p>If the element has a <code title=attr-textarea-rows><a href=#attr-textarea-rows>rows</a></code>
   attribute, and parsing that attribute's value using the <a href=#rules-for-parsing-non-negative-integers>rules
   for parsing non-negative integers</a> doesn't generate an error,
   then the user agent is expected to use the attribute as a <a href=#presentational-hints title="presentational hints">presentational hint</a> for the
   'height' property on the element, with the value being the specified
   number of lines, plus the height of a scrollbar.</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>
 
 
+
   <h3 id=frames-and-framesets><span class=secno>10.5 </span>Frames and framesets</h3>
 
   <p>When an <code><a href=#the-html-element>html</a></code> element's second child element is a

Modified: source
===================================================================
--- source	2009-03-31 04:38:56 UTC (rev 2936)
+++ source	2009-03-31 21:55:36 UTC (rev 2937)
@@ -27273,7 +27273,7 @@
    <dd><code title="attr-hyperlink-type">type</code></dd>
    <dt>DOM interface:</dt>
    <dd>
-<pre class="idl">interface <dfn>HTMLAreaElement</dfn> : <span>HTMLElement</span> {
+<pre class="idl">[Stringifies=href] interface <dfn>HTMLAreaElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-area-alt">alt</span>;
            attribute DOMString <span title="dom-area-coords">coords</span>;
            attribute DOMString <span title="dom-area-shape">shape</span>;
@@ -27285,7 +27285,7 @@
            attribute DOMString <span title="dom-area-media">media</span>;
            attribute DOMString <span title="dom-area-hreflang">hreflang</span>;
            attribute DOMString <span title="dom-area-type">type</span>;
-};</pre>
+};</pre><!-- XXX also support the URL decomposition attributes -->
    </dd>
   </dl>
 
@@ -37403,6 +37403,10 @@
   title="attr-textarea-cols">cols</code> attribute must be
   specified.</p>
 
+  <!-- attr-textarea-wrap-off (attr-textarea-wrap-off-state): not
+  conforming; turns off the rendering of wrapping but otherwise acts
+  like 'soft' -->
+
   <div class="impl">
 
   <p>The element's <span title="concept-fe-value">value</span> is
@@ -72633,7 +72637,7 @@
   <code>textarea</code> element, the element is expected to render as
   an 'inline-block' box rendered as a multiline text field.</p>
 
-  <p>If the element has a <code title="attr-input-cols">cols</code>
+  <p>If the element has a <code title="attr-textarea-cols">cols</code>
   attribute, and parsing that attribute's value using the <span>rules
   for parsing non-negative integers</span> doesn't generate an error,
   then the user agent is expected to use the attribute as a <span
@@ -72643,7 +72647,7 @@
   algorithm to the value of the attribute and then adding the width of
   a scroll bar.</p>
 
-  <p>If the element has a <code title="attr-input-rows">rows</code>
+  <p>If the element has a <code title="attr-textarea-rows">rows</code>
   attribute, and parsing that attribute's value using the <span>rules
   for parsing non-negative integers</span> doesn't generate an error,
   then the user agent is expected to use the attribute as a <span
@@ -72651,8 +72655,15 @@
   'height' property on the element, with the value being the specified
   number of lines, plus the height of a scrollbar.</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>
 
 
+
   <h3>Frames and framesets</h3>
 
   <p>When an <code>html</code> element's second child element is a




More information about the Commit-Watchers mailing list