diff --git a/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp b/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp index 995700db87c..3446a795869 100644 --- a/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp +++ b/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp @@ -2375,6 +2375,8 @@ XSLTProcessor::TransformDocument(nsIDOMNode* aSourceDOM, } mDocument->Reset(channel, loadGroup); + nsCOMPtr root; + // Start of block to ensure the destruction of the ProcessorState // before the destruction of the documents. { @@ -2433,6 +2435,11 @@ XSLTProcessor::TransformDocument(nsIDOMNode* aSourceDOM, // End of block to ensure the destruction of the ProcessorState // before the destruction of the documents. + mOutputHandler->getRootContent(getter_AddRefs(root)); + if (root) { + mDocument->ContentInserted(nsnull, root, 0); + } + mObserver = aObserver; SignalTransformEnd();