зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
c40ac21a45
Коммит
19527731b3
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче