Bug 1405878: Notify for element insertions in nsXMLContentSink. draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 06 Oct 2017 14:11:17 +0200
changeset 676017 568ec4e9228fe29a65d3f170959aa2cdd68124ae
parent 675935 4768b2a98d65b95686c9b60f09761b64891c43a3
child 734819 32fc2d3cbbae345ceb5586c75e213b8e1b4039ce
push id83360
push userbmo:emilio@crisal.io
push dateFri, 06 Oct 2017 12:25:28 +0000
bugs1405878
milestone58.0a1
Bug 1405878: Notify for element insertions in nsXMLContentSink. MozReview-Commit-ID: ADRpSZ8Vi2Y
dom/xml/nsXMLContentSink.cpp
--- a/dom/xml/nsXMLContentSink.cpp
+++ b/dom/xml/nsXMLContentSink.cpp
@@ -973,17 +973,17 @@ nsXMLContentSink::HandleStartElement(con
   // Set the attributes on the new content element
   result = AddAttributes(aAtts, content);
 
   if (NS_OK == result) {
     // Store the element
     if (!SetDocElement(nameSpaceID, localName, content) && appendContent) {
       NS_ENSURE_TRUE(parent, NS_ERROR_UNEXPECTED);
 
-      parent->AppendChildTo(content, false);
+      parent->AppendChildTo(content, true);
     }
   }
 
   // Some HTML nodes need DoneCreatingElement() called to initialize
   // properly (eg form state restoration).
   if (nodeInfo->NamespaceID() == kNameSpaceID_XHTML) {
     if (nodeInfo->NameAtom() == nsGkAtoms::input ||
         nodeInfo->NameAtom() == nsGkAtoms::button ||