Skip to content

Commit

Permalink
[cgiow] (2) Let's allow newlines in <textarea placeholder=''> after a…
Browse files Browse the repository at this point in the history
…ll, since there are some valid use cases.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21286
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8204 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 2, 2013
1 parent b8675ed commit d534237
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 22 deletions.
19 changes: 11 additions & 8 deletions complete.html
Expand Up @@ -256,7 +256,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 1 October 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 2 October 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -51718,7 +51718,7 @@ <h4 id=the-textarea-element><span class=secno>4.10.13 </span>The <dfn><code>text
void <a href=#dom-textarea/input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction);
};</pre>
</dd>
</dl><!--TOPIC:HTML--><p>The <code><a href=#the-textarea-element>textarea</a></code> element <a href=#represents>represents</a> a
</dl><!--TOPIC:HTML--><!--CLEANUP--><p>The <code><a href=#the-textarea-element>textarea</a></code> element <a href=#represents>represents</a> a
multiline plain text edit control<span class=impl> for the
element's <dfn id=concept-textarea-raw-value title=concept-textarea-raw-value>raw
value</dfn></span>. The contents of the control represent the
Expand Down Expand Up @@ -51959,9 +51959,7 @@ <h4 id=the-textarea-element><span class=secno>4.10.13 </span>The <dfn><code>text
attribute represents a <em>short</em> hint (a word or short phrase)
intended to aid the user with data entry when the control has no
value. A hint could be a sample value or a brief description of the
expected format. The attribute, if specified, must have a value that
contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)
characters.</p>
expected format.</p>

<p>The <code title=attr-textarea-placeholder><a href=#attr-textarea-placeholder>placeholder</a></code>
attribute should not be used as an alternative to a
Expand All @@ -51977,11 +51975,16 @@ <h4 id=the-textarea-element><span class=secno>4.10.13 </span>The <dfn><code>text

<div class=impl>

<p>User agents should present this hint to the user, after having
<a href=#strip-line-breaks title="strip line breaks">stripped line breaks</a> from it,
<p>User agents should present this hint to the user
when the element's <a href=#concept-fe-value title=concept-fe-value>value</a> is
the empty string and the control is not focused (e.g. by displaying
it inside a blank unfocused control).</p>
it inside a blank unfocused control).

All U+000D CARRIAGE RETURN U+000A LINE FEED character pairs (CRLF) in the hint, as well as all
other U+000D CARRIAGE RETURN (CR) and U+000A LINE FEED (LF) characters in the hint, must be
treated as line breaks when rendering the hint.

</p>

</div>

Expand Down
19 changes: 11 additions & 8 deletions index
Expand Up @@ -256,7 +256,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 1 October 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 2 October 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -51718,7 +51718,7 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
void <a href=#dom-textarea/input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction);
};</pre>
</dd>
</dl><!--TOPIC:HTML--><p>The <code><a href=#the-textarea-element>textarea</a></code> element <a href=#represents>represents</a> a
</dl><!--TOPIC:HTML--><!--CLEANUP--><p>The <code><a href=#the-textarea-element>textarea</a></code> element <a href=#represents>represents</a> a
multiline plain text edit control<span class=impl> for the
element's <dfn id=concept-textarea-raw-value title=concept-textarea-raw-value>raw
value</dfn></span>. The contents of the control represent the
Expand Down Expand Up @@ -51959,9 +51959,7 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
attribute represents a <em>short</em> hint (a word or short phrase)
intended to aid the user with data entry when the control has no
value. A hint could be a sample value or a brief description of the
expected format. The attribute, if specified, must have a value that
contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)
characters.</p>
expected format.</p>

<p>The <code title=attr-textarea-placeholder><a href=#attr-textarea-placeholder>placeholder</a></code>
attribute should not be used as an alternative to a
Expand All @@ -51977,11 +51975,16 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme

<div class=impl>

<p>User agents should present this hint to the user, after having
<a href=#strip-line-breaks title="strip line breaks">stripped line breaks</a> from it,
<p>User agents should present this hint to the user
when the element's <a href=#concept-fe-value title=concept-fe-value>value</a> is
the empty string and the control is not focused (e.g. by displaying
it inside a blank unfocused control).</p>
it inside a blank unfocused control).

All U+000D CARRIAGE RETURN U+000A LINE FEED character pairs (CRLF) in the hint, as well as all
other U+000D CARRIAGE RETURN (CR) and U+000A LINE FEED (LF) characters in the hint, must be
treated as line breaks when rendering the hint.

</p>

</div>

Expand Down
16 changes: 10 additions & 6 deletions source
Expand Up @@ -56785,6 +56785,7 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
</dd>
</dl><!--TOPIC:HTML-->

<!--CLEANUP-->
<p>The <code>textarea</code> element <span>represents</span> a
multiline plain text edit control<span class="impl"> for the
element's <dfn title="concept-textarea-raw-value">raw
Expand Down Expand Up @@ -57078,9 +57079,7 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
attribute represents a <em>short</em> hint (a word or short phrase)
intended to aid the user with data entry when the control has no
value. A hint could be a sample value or a brief description of the
expected format. The attribute, if specified, must have a value that
contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)
characters.</p>
expected format.</p>

<p>The <code title="attr-textarea-placeholder">placeholder</code>
attribute should not be used as an alternative to a
Expand All @@ -57098,11 +57097,16 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<div class="impl">

<p>User agents should present this hint to the user, after having
<span title="strip line breaks">stripped line breaks</span> from it,
<p>User agents should present this hint to the user
when the element's <span title="concept-fe-value">value</span> is
the empty string and the control is not focused (e.g. by displaying
it inside a blank unfocused control).</p>
it inside a blank unfocused control).

All U+000D CARRIAGE RETURN U+000A LINE FEED character pairs (CRLF) in the hint, as well as all
other U+000D CARRIAGE RETURN (CR) and U+000A LINE FEED (LF) characters in the hint, must be
treated as line breaks when rendering the hint.

</p>

</div>

Expand Down

0 comments on commit d534237

Please sign in to comment.