mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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:
parent
80650f2d25
commit
506214644d
@ -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…
Reference in New Issue
Block a user