[html5] r867 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 5 16:24:30 PDT 2007


Author: ianh
Date: 2007-06-05 16:24:28 -0700 (Tue, 05 Jun 2007)
New Revision: 867

Modified:
   index
   source
Log:
[act] (0) <textarea> elements strip leading newlines, just like <pre> elements

Modified: index
===================================================================
--- index	2007-06-05 05:35:09 UTC (rev 866)
+++ index	2007-06-05 23:24:28 UTC (rev 867)
@@ -32668,12 +32668,12 @@
    <code><a href="#tbody">tbody</a></code> start tag before it.)
 
   <p>A single U+000A LINE FEED (LF) character may be placed immediately after
-   a <code><a href="#pre">pre</a></code> element's <span
-   title=syntax-start-tag>start tag</span>. This does not affect the
-   processing of the element. The otherwise optional U+000A LINE FEED (LF)
-   character <em>must</em> be included if the element's contents start with
-   that character (because otherwise the leading newline in the contents
-   would be treated like the optional newline, and ignored).
+   the <span title=syntax-start-tag>start tag</span> of <code><a
+   href="#pre">pre</a></code> and <code>textarea</code> elements. This does
+   not affect the processing of the element. The otherwise optional U+000A
+   LINE FEED (LF) character <em>must</em> be included if the element's
+   contents start with that character (because otherwise the leading newline
+   in the contents would be treated like the optional newline, and ignored).
 
   <div class=example>
    <p>The following two <code><a href="#pre">pre</a></code> blocks are
@@ -36374,6 +36374,11 @@
         <p>Switch the tokeniser's <a href="#content2">content model flag</a>
          to the RCDATA state.</p>
 
+        <p>If the next token is a U+000A LINE FEED (LF) character token, then
+         ignore that token and move on to the next one. (Newlines at the
+         start of <code>textarea</code> elements are ignored as an authoring
+         convenience.)</p>
+
         <p>Then, collect all the character tokens that the tokeniser returns
          until it returns a token that is not a character token, or until it
          stops tokenising.</p>
@@ -39205,8 +39210,8 @@
    Andrew Gove, Anne van Kesteren, Anthony Hickson, Asbjørn Ulsberg,
    Ben Godfrey, Ben Meadowcroft, Benjamin Hawkes-Lewis, Bert Bos, Bjoern
    Hoehrmann, Boris Zbarsky, Brad Fults, Brad Neuberg, Brendan Eich, Brett
-   Wilson, Chao Cai, Channy Yun, Charl van
-   Niekerk<!--status.whatwg.org maintainer-->, Charles Iliya Krempeaux,
+   Wilson, Carlos Perelló Marín, Chao Cai, Channy Yun, Charl
+   van Niekerk<!--status.whatwg.org maintainer-->, Charles Iliya Krempeaux,
    Charles McCathieNevile, Christian Biesinger, Christian Johansen, Chriswa,
    Daniel Peng, Daniel Spång, Darin Alder, Darin Fisher, Dave
    Townsend<!-- Mossop on moz irc -->, David Baron, David Flanagan, David

Modified: source
===================================================================
--- source	2007-06-05 05:35:09 UTC (rev 866)
+++ source	2007-06-05 23:24:28 UTC (rev 867)
@@ -30182,13 +30182,13 @@
   a <code>tbody</code> start tag before it.)</p>
 
   <p>A single U+000A LINE FEED (LF) character may be placed
-  immediately after a <code>pre</code> element's <span
-  title="syntax-start-tag">start tag</span>. This does not affect the
-  processing of the element. The otherwise optional U+000A LINE FEED
-  (LF) character <em>must</em> be included if the element's contents
-  start with that character (because otherwise the leading newline in
-  the contents would be treated like the optional newline, and
-  ignored).</p>
+  immediately after the <span title="syntax-start-tag">start
+  tag</span> of <code>pre</code> and <code>textarea</code>
+  elements. This does not affect the processing of the element. The
+  otherwise optional U+000A LINE FEED (LF) character <em>must</em> be
+  included if the element's contents start with that character
+  (because otherwise the leading newline in the contents would be
+  treated like the optional newline, and ignored).</p>
 
   <div class="example">
    <p>The following two <code>pre</code> blocks are equivalent:</p>
@@ -33967,6 +33967,11 @@
         <p>Switch the tokeniser's <span>content model flag</span> to
         the RCDATA state.</p>
 
+        <p>If the next token is a U+000A LINE FEED (LF) character
+        token, then ignore that token and move on to the next
+        one. (Newlines at the start of <code>textarea</code> elements
+        are ignored as an authoring convenience.)</p>
+
         <p>Then, collect all the character tokens that the tokeniser
         returns until it returns a token that is not a character
         token, or until it stops tokenising.</p>
@@ -35856,12 +35861,13 @@
   Feldgendler, Andrew Gove, Anne van Kesteren, Anthony Hickson,
   Asbjørn Ulsberg, Ben Godfrey, Ben Meadowcroft, Benjamin
   Hawkes-Lewis, Bert Bos, Bjoern Hoehrmann, Boris Zbarsky, Brad Fults,
-  Brad Neuberg, Brendan Eich, Brett Wilson, Chao Cai, Channy Yun,
-  Charl van Niekerk<!--status.whatwg.org maintainer-->, Charles Iliya
-  Krempeaux, Charles McCathieNevile, Christian Biesinger, Christian
-  Johansen, Chriswa, Daniel Peng, Daniel Spång, Darin Alder,
-  Darin Fisher, Dave Townsend<!-- Mossop on moz irc -->, David Baron,
-  David Flanagan, David Håsäther, David Hyatt, Derek
+  Brad Neuberg, Brendan Eich, Brett Wilson, Carlos Perelló
+  Marín, Chao Cai, Channy Yun, Charl van
+  Niekerk<!--status.whatwg.org maintainer-->, Charles Iliya Krempeaux,
+  Charles McCathieNevile, Christian Biesinger, Christian Johansen,
+  Chriswa, Daniel Peng, Daniel Spång, Darin Alder, Darin Fisher,
+  Dave Townsend<!-- Mossop on moz irc -->, David Baron, David
+  Flanagan, David Håsäther, David Hyatt, Derek
   Featherstone, Dimitri Glazkov, dolphinling, Doron Rosenberg, Eira
   Monstad, Elliotte Harold, Erik Arvidsson, fantasai, Franck 'Shift'
   Quélain, Geoffrey Sneddon, Håkon Wium Lie, Henri




More information about the Commit-Watchers mailing list