Permalink
Browse files

[] (0) Make the innerHTML getter output <pre> and <textarea> contents…

… correctly.

git-svn-id: http://svn.whatwg.org/webapps@922 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jun 19, 2007
1 parent 7f197de commit 8b6a3c2a8e6627b9add07e28cd0b6785df24bd60
Showing with 18 additions and 11 deletions.
  1. +10 −7 index
  2. +8 −4 source
View
17 index
@@ -3770,15 +3770,18 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
should never serialise them -->
<!-- XXX when we get around to
it, add event-source -->
<p>Otherwise, append the value of the <var title="">child</var>
element's <code title=dom-innerHTML-HTML><a
href="#innerhtml0">innerHTML</a></code> DOM attribute (thus recursing
into this algorithm for that element), followed by a U+003C LESS-THAN
SIGN (<code title="">&lt;</code>) character, a U+002F SOLIDUS (<code
title="">/</code>) character, the element's tag name again, and
finally a U+003E GREATER-THAN SIGN (<code title="">&gt;</code>)
<p>If the child node is a <code><a href="#pre">pre</a></code> or
<code>textarea</code> element, append a U+000A LINE FEED (LF)
character.</p>
<p>Append the value of the <var title="">child</var> element's <code
title=dom-innerHTML-HTML><a href="#innerhtml0">innerHTML</a></code>
DOM attribute (thus recursing into this algorithm for that element),
followed by a U+003C LESS-THAN SIGN (<code title="">&lt;</code>)
character, a U+002F SOLIDUS (<code title="">/</code>) character, the
element's tag name again, and finally a U+003E GREATER-THAN SIGN
(<code title="">&gt;</code>) character.</p>
<dt>If the child node is a <code title="">Text</code> or <code
title="">CDATASection</code> node
View
12 source
@@ -2340,10 +2340,14 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
should never serialise them --> <!-- XXX when we get around to
it, add event-source -->
<p>Otherwise, append the value of the <var title="">child</var>
element's <code title="dom-innerHTML-HTML">innerHTML</code> DOM
attribute (thus recursing into this algorithm for that element),
followed by a U+003C LESS-THAN SIGN (<code title="">&lt;</code>)
<p>If the child node is a <code>pre</code> or
<code>textarea</code> element, append a U+000A LINE FEED (LF)
character.</p>
<p>Append the value of the <var title="">child</var> element's
<code title="dom-innerHTML-HTML">innerHTML</code> DOM attribute
(thus recursing into this algorithm for that element), followed
by a U+003C LESS-THAN SIGN (<code title="">&lt;</code>)
character, a U+002F SOLIDUS (<code title="">/</code>) character,
the element's tag name again, and finally a U+003E GREATER-THAN
SIGN (<code title="">&gt;</code>) character.</p>

0 comments on commit 8b6a3c2

Please sign in to comment.