[html5] r1766 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu Jun 12 20:27:37 PDT 2008


Author: ianh
Date: 2008-06-12 20:27:36 -0700 (Thu, 12 Jun 2008)
New Revision: 1766

Modified:
   index
   source
Log:
[giow] (2) make innerHTML on XML documents not do the xmlns='' thing.

Modified: index
===================================================================
--- index	2008-06-13 02:32:04 UTC (rev 1765)
+++ index	2008-06-13 03:27:36 UTC (rev 1766)
@@ -4291,13 +4291,17 @@
    be an isomorphic serialization of all of that node's child nodes, in
    document order. User agents may adjust prefixes and namespace declarations
    in the serialization (and indeed might be forced to do so in some cases to
-   obtain namespace-well-formed XML). If any of the elements in the
-   serialization are in no namespace, the default namespace in scope for
-   those elements must be explicitly declared as the empty
-   string.<!-- because otherwise
-  round-tripping might break since it'll pick up the surrounding
-  default ns when setting -->
-   <a href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>
+   obtain namespace-well-formed XML). For the <code
+   title=dom-innerHTML-XML><a href="#innerhtml1">innerHTML</a></code>
+   attribute on <code><a href="#htmlelement">HTMLElement</a></code> objects,
+   if any of the elements in the serialization are in no namespace, the
+   default namespace in scope for those elements must be explicitly declared
+   as the empty string.<!-- because otherwise round-tripping might break
+  since it'll pick up the surrounding default ns when setting -->
+   (This doesn't apply to the <code title=dom-innerHTML-XML><a
+   href="#innerhtml1">innerHTML</a></code> attribute on <code><a
+   href="#htmldocument">HTMLDocument</a></code> objects.) <a
+   href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>
 
   <p>If any of the following cases are found in the DOM being serialized, the
    user agent must raise an <code>INVALID_STATE_ERR</code> exception:
@@ -5813,7 +5817,7 @@
    <!-- SECOND -->
 
    <li>
-    <p>Let <var title="">second</var> be 0. It may be changed to another
+    <p>Let <var title="">second</var> be 0. It might be changed to another
      value in the next step.
 
    <li>
@@ -20306,7 +20310,7 @@
    the values 0, 0, the <code title=dom-imagedata-width><a
    href="#width3">width</a></code> member of the <var
    title="">imagedata</var> structure, and the <code
-   title=dom-imagedata-height><a href="#height2">height</a></code>member of
+   title=dom-imagedata-height><a href="#height2">height</a></code> member of
    the <var title="">imagedata</var> structure, respectively.
 
   <p>When invoked with arguments that do not, per the last few paragraphs,

Modified: source
===================================================================
--- source	2008-06-13 02:32:04 UTC (rev 1765)
+++ source	2008-06-13 03:27:36 UTC (rev 1766)
@@ -2591,6 +2591,7 @@
        http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/html/HTMLTokenizer.cpp#L1742
    -->
 
+
   <h4>Dynamic markup insertion in XML</h4>
 
   <p>In an XML context, the <dfn
@@ -2624,11 +2625,15 @@
   nodes, in document order. User agents may adjust prefixes and
   namespace declarations in the serialization (and indeed might be
   forced to do so in some cases to obtain namespace-well-formed
-  XML). If any of the elements in the serialization are in no
-  namespace, the default namespace in scope for those elements must be
-  explicitly declared as the empty string.<!-- because otherwise
-  round-tripping might break since it'll pick up the surrounding
-  default ns when setting --> <a href="#refsXML">[XML]</a> <a
+  XML). For the <code title="dom-innerHTML-XML">innerHTML</code>
+  attribute on <code>HTMLElement</code> objects, if any of the
+  elements in the serialization are in no namespace, the default
+  namespace in scope for those elements must be explicitly declared as
+  the empty string.<!-- because otherwise round-tripping might break
+  since it'll pick up the surrounding default ns when setting -->
+  (This doesn't apply to the <code
+  title="dom-innerHTML-XML">innerHTML</code> attribute on
+  <code>HTMLDocument</code> objects.) <a href="#refsXML">[XML]</a> <a
   href="#refsXMLNS">[XMLNS]</a></p>
 
   <p>If any of the following cases are found in the DOM being
@@ -4271,7 +4276,7 @@
    the string is invalid, abort these steps.</p></li>
 
    <!-- SECOND -->
-   <li><p>Let <var title="">second</var> be 0. It may be changed to
+   <li><p>Let <var title="">second</var> be 0. It might be changed to
    another value in the next step.</p></li>
 
    <li><p>If <var title="">position</var> is not past the end of <var
@@ -17953,7 +17958,7 @@
   have the values 0, 0, the <code
   title="dom-imagedata-width">width</code> member of the <var
   title="">imagedata</var> structure, and the <code
-  title="dom-imagedata-height">height</code>member of the <var
+  title="dom-imagedata-height">height</code> member of the <var
   title="">imagedata</var> structure, respectively.</p>
 
   <p>When invoked with arguments that do not, per the last few




More information about the Commit-Watchers mailing list