[html5] r922 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon Jun 18 22:37:30 PDT 2007


Author: ianh
Date: 2007-06-18 22:37:29 -0700 (Mon, 18 Jun 2007)
New Revision: 922

Modified:
   index
   source
Log:
[] (0) Make the innerHTML getter output <pre> and <textarea> contents correctly.

Modified: index
===================================================================
--- index	2007-06-19 04:15:54 UTC (rev 921)
+++ index	2007-06-19 05:37:29 UTC (rev 922)
@@ -3770,15 +3770,18 @@
       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=""><</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="">></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=""><</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="">></code>) character.</p>
+
      <dt>If the child node is a <code title="">Text</code> or <code
       title="">CDATASection</code> node
 

Modified: source
===================================================================
--- source	2007-06-19 04:15:54 UTC (rev 921)
+++ source	2007-06-19 05:37:29 UTC (rev 922)
@@ -2340,10 +2340,14 @@
       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=""><</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=""><</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="">></code>) character.</p>




More information about the Commit-Watchers mailing list