Permalink
Browse files

[giow] (2) Make HTML serialisation more conservative near <pre>.

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...
1 parent ed8b5f2 commit baba6fa7b15d6c7a9d5c0bbc02fb7953f0a7225a @Hixie Hixie committed Jan 31, 2012
Showing with 15 additions and 6 deletions.
  1. +5 −2 complete.html
  2. +5 −2 index
  3. +5 −2 source
View
@@ -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
View
@@ -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
View
@@ -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

0 comments on commit baba6fa

Please sign in to comment.