Skip to content

Commit

Permalink
[a] (0) Update the syntax section to more correctly handle newlines.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3858 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 15, 2009
1 parent c592cc4 commit 54d08d1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
26 changes: 14 additions & 12 deletions index
Expand Up @@ -61332,14 +61332,14 @@ interface <dfn id=messageport>MessagePort</dfn> {
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>
Expand All @@ -61355,8 +61355,10 @@ interface <dfn id=messageport>MessagePort</dfn> {
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 (&gt;), 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 (&gt;), 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
Expand Down Expand Up @@ -65744,10 +65746,10 @@ document.body.appendChild(text);
<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>
Expand Down
27 changes: 14 additions & 13 deletions source
Expand Up @@ -75785,14 +75785,14 @@ interface <dfn>MessagePort</dfn> {
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>
Expand All @@ -75808,9 +75808,10 @@ interface <dfn>MessagePort</dfn> {
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
Expand Down Expand Up @@ -80786,10 +80787,10 @@ document.body.appendChild(text);
</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>
Expand Down

0 comments on commit 54d08d1

Please sign in to comment.