Skip to content

Commit

Permalink
Don't set the output log element until we are done loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Jun 10, 2014
1 parent 2e9c0e9 commit 15f071f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -1333,10 +1333,11 @@ policies and contribution forms [3].
}
var node = output_document.getElementById("log");
if (!node) {
if (!document.body) {
if (!document.body || document.readyState == "loading") {
return;
}
node = output_document.createElement("div");
node.id = "log";
output_document.body.appendChild(node);
}
this.output_document = output_document;
Expand Down

0 comments on commit 15f071f

Please sign in to comment.