Final part of bug 59912. Call SetDocument before adding any attributes on elements in the result of XSLT-transformations. This fixes (at least) onclick-like attributes.

r=peterv sr=jst
This commit is contained in:
sicking%bigfoot.com 2002-02-04 15:31:41 +00:00
parent 80650f2d25
commit 506214644d

View File

@ -355,6 +355,11 @@ void txMozillaXMLOutput::startElement(const String& aName,
}
if (element) {
nsCOMPtr<nsIContent> cont = do_QueryInterface(element);
if (cont) {
nsCOMPtr<nsIDocument> doc = do_QueryInterface(mDocument);
cont->SetDocument(doc, PR_FALSE, PR_TRUE);
}
mParentNode = mCurrentNode;
mCurrentNode = do_QueryInterface(element);
}