Skip to content

Commit

Permalink
[giow] (2) Make HTML serialisation more conservative near <pre>.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=14833
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@6940 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 31, 2012
1 parent ed8b5f2 commit baba6fa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions complete.html
Expand Up @@ -88819,8 +88819,11 @@ <h3 id=serializing-html-fragments><span class=secno>12.3 </span>Serializing HTML
thus we should never serialize them -->

<p>If <var title="">current node</var> is a <code><a href=#the-pre-element>pre</a></code>,
<code><a href=#the-textarea-element>textarea</a></code>, or <code><a href=#listing>listing</a></code> element, append
a U+000A LINE FEED (LF) character.</p>
<code><a href=#the-textarea-element>textarea</a></code>, or <code><a href=#listing>listing</a></code> element, and
the first child node of the element, if any, is a <a href=#text-node>text
node</a> whose character data has as its first character a
U+000A LINE FEED (LF) character, then append a U+000A LINE
FEED (LF) character.</p>

<p>Append the value of running the <a href=#html-fragment-serialization-algorithm>HTML fragment
serialization algorithm</a> on the <var title="">current
Expand Down
7 changes: 5 additions & 2 deletions index
Expand Up @@ -88819,8 +88819,11 @@ document.body.appendChild(text);
thus we should never serialize them -->

<p>If <var title="">current node</var> is a <code><a href=#the-pre-element>pre</a></code>,
<code><a href=#the-textarea-element>textarea</a></code>, or <code><a href=#listing>listing</a></code> element, append
a U+000A LINE FEED (LF) character.</p>
<code><a href=#the-textarea-element>textarea</a></code>, or <code><a href=#listing>listing</a></code> element, and
the first child node of the element, if any, is a <a href=#text-node>text
node</a> whose character data has as its first character a
U+000A LINE FEED (LF) character, then append a U+000A LINE
FEED (LF) character.</p>

<p>Append the value of running the <a href=#html-fragment-serialization-algorithm>HTML fragment
serialization algorithm</a> on the <var title="">current
Expand Down
7 changes: 5 additions & 2 deletions source
Expand Up @@ -102762,8 +102762,11 @@ document.body.appendChild(text);
thus we should never serialize them -->

<p>If <var title="">current node</var> is a <code>pre</code>,
<code>textarea</code>, or <code>listing</code> element, append
a U+000A LINE FEED (LF) character.</p>
<code>textarea</code>, or <code>listing</code> element, and
the first child node of the element, if any, is a <span>text
node</span> whose character data has as its first character a
U+000A LINE FEED (LF) character, then append a U+000A LINE
FEED (LF) character.</p>

<p>Append the value of running the <span>HTML fragment
serialization algorithm</span> on the <var title="">current
Expand Down

0 comments on commit baba6fa

Please sign in to comment.