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.

--HG--
extra : rebase_source : 9a6d14b2147370d16bd27b206e12b05037279d83
This commit is contained in:
Henri Sivonen 2009-12-14 15:51:15 +02:00
parent 90122f0ace
commit f4ab766e30

View File

@ -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));