From 15f071fe2e33285d656cbcdcae533d8558fc1caa Mon Sep 17 00:00:00 2001 From: James Graham Date: Tue, 10 Jun 2014 14:16:06 +0100 Subject: [PATCH] Don't set the output log element until we are done loading. --- testharness.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testharness.js b/testharness.js index a47ceedd72892c..03c4f5f6020545 100644 --- a/testharness.js +++ b/testharness.js @@ -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;