Skip to content

Commit

Permalink
Merge pull request web-platform-tests#79 from w3c/jgraham/log_wait_load
Browse files Browse the repository at this point in the history
Don't set the output log element until we are done loading.
  • Loading branch information
jgraham committed Jun 10, 2014
2 parents 2e9c0e9 + 15f071f commit b8c9ce0
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 b8c9ce0

Please sign in to comment.