Bug 534546 - Script with defer attribute never runs in the HTML5 parser. Part of the patch for bug 515610 (r=bnewman) but not landed due to a bad merge.
This commit is contained in:
@@ -508,6 +508,11 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
|
||||
*aScriptElement = node;
|
||||
return rv;
|
||||
}
|
||||
case eTreeOpRunScriptAsyncDefer: {
|
||||
nsIContent* node = *(mOne.node);
|
||||
aBuilder->RunScript(node);
|
||||
return rv;
|
||||
}
|
||||
case eTreeOpDoneAddingChildren: {
|
||||
nsIContent* node = *(mOne.node);
|
||||
node->DoneAddingChildren(aBuilder->HaveNotified(node));
|
||||
|
||||
Reference in New Issue
Block a user