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 git-svn-id: svn://10.0.0.236/trunk@113606 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8ba4f03273
commit
ef42436f16
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user