mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 642145 - Avoid firing document-element-inserted for non-element insertions to the document node. r=jonas.
This commit is contained in:
parent
5d947243ad
commit
e9f116d66d
@ -260,9 +260,10 @@ nsHtml5TreeOperation::AppendToDocument(nsIContent* aNode,
|
||||
|
||||
NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(),
|
||||
"Someone forgot to block scripts");
|
||||
nsContentUtils::AddScriptRunner(
|
||||
new nsDocElementCreatedNotificationRunner(doc));
|
||||
|
||||
if (aNode->IsElement()) {
|
||||
nsContentUtils::AddScriptRunner(
|
||||
new nsDocElementCreatedNotificationRunner(doc));
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user