[html5] r8204 - [cgiow] (2) Let's allow newlines in <textarea placeholder=''> after all, since t [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Oct 2 11:27:11 PDT 2013
Author: ianh
Date: 2013-10-02 11:27:09 -0700 (Wed, 02 Oct 2013)
New Revision: 8204
Modified:
complete.html
index
source
Log:
[cgiow] (2) Let's allow newlines in <textarea placeholder=''> after all, since there are some valid use cases.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21286
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2013-10-01 22:57:27 UTC (rev 8203)
+++ complete.html 2013-10-02 18:27:09 UTC (rev 8204)
@@ -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 — Last Updated 1 October 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — 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>
@@ -51718,7 +51718,7 @@
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
@@ -51959,9 +51959,7 @@
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
@@ -51977,12 +51975,17 @@
<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>
<p>
Modified: index
===================================================================
--- index 2013-10-01 22:57:27 UTC (rev 8203)
+++ index 2013-10-02 18:27:09 UTC (rev 8204)
@@ -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 — Last Updated 1 October 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — 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>
@@ -51718,7 +51718,7 @@
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
@@ -51959,9 +51959,7 @@
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
@@ -51977,12 +51975,17 @@
<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>
<p>
Modified: source
===================================================================
--- source 2013-10-01 22:57:27 UTC (rev 8203)
+++ source 2013-10-02 18:27:09 UTC (rev 8204)
@@ -56785,6 +56785,7 @@
</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
@@ -57078,9 +57079,7 @@
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
@@ -57098,12 +57097,17 @@
<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>
<p>
More information about the Commit-Watchers
mailing list