[Pkg-javascript-commits] [ltx] 219/469: browser_benchmark: use only document.body.innerHTML

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:03:05 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit c9213624d26d0d4ecba38b2b26dacbfd6867d301
Author: Astro <astro at spaceboyz.net>
Date:   Tue Mar 20 02:09:11 2012 +0100

    browser_benchmark: use only document.body.innerHTML
    
    broke document.write() on Firefox
---
 benchmark/browser_benchmark.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/benchmark/browser_benchmark.js b/benchmark/browser_benchmark.js
index 3729534..11fd8d4 100644
--- a/benchmark/browser_benchmark.js
+++ b/benchmark/browser_benchmark.js
@@ -115,7 +115,7 @@ setTimeout(function() {
 	document.body.innerHTML = "<style>.parse0, .parse1, .parse2, .parse3 { color: red; } .serialize1, .serialize2, .serialize3, .serialize4 { color: blue; }</style>\n" +
 	    "<h1>Iteration " + iteration + "<h1>\n";
 	tests.forEach(function(test) {
-	    document.write(test.report() + "<br>");
+	    document.body.innerHTML += test.report() + "<br>";
 	});
     }, 1);
 }, 1000);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list