[html5] r3858 - [a] (0) Update the syntax section to more correctly handle newlines.

whatwg at whatwg.org whatwg at whatwg.org
Tue Sep 15 01:46:31 PDT 2009


Author: ianh
Date: 2009-09-15 01:46:30 -0700 (Tue, 15 Sep 2009)
New Revision: 3858

Modified:
   index
   source
Log:
[a] (0) Update the syntax section to more correctly handle newlines.

Modified: index
===================================================================
--- index	2009-09-15 08:35:03 UTC (rev 3857)
+++ index	2009-09-15 08:46:30 UTC (rev 3858)
@@ -61332,14 +61332,14 @@
   put inside a <code><a href=#the-table-element>table</a></code> in the markup, it will in fact imply
   a <code><a href=#the-tbody-element>tbody</a></code> start tag before it.)</p>
 
-  <p>A single U+000A LINE FEED (LF) character may be placed
-  immediately after the <a href=#syntax-start-tag title=syntax-start-tag>start
+  <p>A single <a href=#syntax-newlines title=syntax-newlines>newline</a> may be
+  placed immediately after the <a href=#syntax-start-tag title=syntax-start-tag>start
   tag</a> of <code><a href=#the-pre-element>pre</a></code> and <code><a href=#the-textarea-element>textarea</a></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>
+  otherwise optional <a href=#syntax-newlines title=syntax-newlines>newline</a>
+  <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><a href=#the-pre-element>pre</a></code> blocks are equivalent:</p>
@@ -61355,8 +61355,10 @@
   LESS-THAN SIGN, U+002F SOLIDUS) followed by characters that
   case-insensitively match the tag name of the element followed by one
   of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), U+000C FORM
-  FEED (FF), U+0020 SPACE, U+003E GREATER-THAN SIGN (>), or U+002F
-  SOLIDUS (/), unless that string is part of an <a href=#syntax-escape title=syntax-escape>escaping text span</a>.</p>
+  FEED (FF), U+000D CARRIAGE RETURN (CR), U+0020 SPACE, U+003E
+  GREATER-THAN SIGN (>), or U+002F SOLIDUS (/), unless that string is
+  part of an <a href=#syntax-escape title=syntax-escape>escaping text
+  span</a>.</p>
 
   <p>An <dfn id=syntax-escape title=syntax-escape>escaping text span</dfn> is a span
   of <a href=#syntax-text title=syntax-text>text</a> that starts with an <a href=#syntax-escape-start title=syntax-escape-start>escaping text span start</a> that is
@@ -65744,10 +65746,10 @@
     <div class="example">
      <p class="XXX">Need an example.</p>
     </div>
---><p class=note>Because of the way this algorithm causes elements to
-    change parents, it has been dubbed the "adoption agency algorithm"
-    (in contrast with other possibly algorithms for dealing with
-    misnested content, which included the "incest algorithm", the
+--><p class=note>Because of the way this algorithm causes elements
+    to change parents, it has been dubbed the "adoption agency
+    algorithm" (in contrast with other possible algorithms for dealing
+    with misnested content, which included the "incest algorithm", the
     "secret affair algorithm", and the "Heisenberg algorithm").</p>
 
    </dd>

Modified: source
===================================================================
--- source	2009-09-15 08:35:03 UTC (rev 3857)
+++ source	2009-09-15 08:46:30 UTC (rev 3858)
@@ -75785,14 +75785,14 @@
   put inside a <code>table</code> in the markup, it will in fact imply
   a <code>tbody</code> start tag before it.)</p>
 
-  <p>A single U+000A LINE FEED (LF) character may be placed
-  immediately after the <span title="syntax-start-tag">start
+  <p>A single <span title="syntax-newlines">newline</span> may be
+  placed 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>
+  otherwise optional <span title="syntax-newlines">newline</span>
+  <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>
@@ -75808,9 +75808,10 @@
   LESS-THAN SIGN, U+002F SOLIDUS) followed by characters that
   case-insensitively match the tag name of the element followed by one
   of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), U+000C FORM
-  FEED (FF), U+0020 SPACE, U+003E GREATER-THAN SIGN (>), or U+002F
-  SOLIDUS (/), unless that string is part of an <span
-  title="syntax-escape">escaping text span</span>.</p>
+  FEED (FF), U+000D CARRIAGE RETURN (CR), U+0020 SPACE, U+003E
+  GREATER-THAN SIGN (>), or U+002F SOLIDUS (/), unless that string is
+  part of an <span title="syntax-escape">escaping text
+  span</span>.</p>
 
   <p>An <dfn title="syntax-escape">escaping text span</dfn> is a span
   of <span title="syntax-text">text</span> that starts with an <span
@@ -80786,10 +80787,10 @@
     </div>
 -->
 
-    <p class="note">Because of the way this algorithm causes elements to
-    change parents, it has been dubbed the "adoption agency algorithm"
-    (in contrast with other possibly algorithms for dealing with
-    misnested content, which included the "incest algorithm", the
+    <p class="note">Because of the way this algorithm causes elements
+    to change parents, it has been dubbed the "adoption agency
+    algorithm" (in contrast with other possible algorithms for dealing
+    with misnested content, which included the "incest algorithm", the
     "secret affair algorithm", and the "Heisenberg algorithm").</p>
 
    </dd>




More information about the Commit-Watchers mailing list