Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 15f071f

Browse files
committed
Don't set the output log element until we are done loading.
1 parent 2e9c0e9 commit 15f071f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testharness.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,10 +1333,11 @@ policies and contribution forms [3].
13331333
}
13341334
var node = output_document.getElementById("log");
13351335
if (!node) {
1336-
if (!document.body) {
1336+
if (!document.body || document.readyState == "loading") {
13371337
return;
13381338
}
13391339
node = output_document.createElement("div");
1340+
node.id = "log";
13401341
output_document.body.appendChild(node);
13411342
}
13421343
this.output_document = output_document;

0 commit comments

Comments
 (0)