Skip to content

Commit

Permalink
[] (0) Make the innerHTML getter output <pre> and <textarea> contents…
Browse files Browse the repository at this point in the history
… 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 8b6a3c2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
17 changes: 10 additions & 7 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 8 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8b6a3c2

Please sign in to comment.