Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Make HTMLAreaElement stringify; make <textarea wrap=''> suppor…
…t the 'off' value.

git-svn-id: http://svn.whatwg.org/webapps@2937 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 31, 2009
1 parent d3ed0b5 commit eb38974
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
17 changes: 13 additions & 4 deletions index
Expand Up @@ -24722,7 +24722,7 @@ function AddCloud(data, x, y) { ... }</pre>
<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>;
Expand All @@ -24734,7 +24734,7 @@ function AddCloud(data, x, y) { ... }</pre>
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
Expand Down Expand Up @@ -33353,6 +33353,10 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
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
Expand Down Expand Up @@ -61933,7 +61937,7 @@ textarea { binding: <i title="">textarea</i>; }</pre>
<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
Expand All @@ -61942,13 +61946,18 @@ textarea { binding: <i title="">textarea</i>; }</pre>
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>
Expand Down
19 changes: 15 additions & 4 deletions source
Expand Up @@ -27273,7 +27273,7 @@ function AddCloud(data, x, y) { ... }</pre>
<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>;
Expand All @@ -27285,7 +27285,7 @@ function AddCloud(data, x, y) { ... }</pre>
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>

Expand Down Expand Up @@ -37403,6 +37403,10 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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
Expand Down Expand Up @@ -72633,7 +72637,7 @@ textarea { binding: <i title="">textarea</i>; }</pre>
<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
Expand All @@ -72643,14 +72647,21 @@ textarea { binding: <i title="">textarea</i>; }</pre>
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
title="presentational hints">presentational hint</span> 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">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>
Expand Down

0 comments on commit eb38974

Please sign in to comment.