Bug 1405878: Notify for element insertions in nsXMLContentSink.
MozReview-Commit-ID: ADRpSZ8Vi2Y
--- 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 ||