Skip to content
This repository
Browse code

Use insertAdjacentHTML instead of innerHTML in perf.js.

  • Loading branch information...
commit d8cf3715239faa922d4c265347fd526b497af86e 1 parent face02f
Steven Levithan authored August 23, 2012
1  tests/perf/index.html
@@ -21,7 +21,6 @@
21 21
     <script src="../../src/xregexp.js"></script>
22 22
     <script src="../../src/addons/build.js"></script>
23 23
     <script src="../../src/addons/matchrecursive.js"></script>
24  
-    <script src="../../src/addons/prototypes.js"></script>
25 24
     <script src="../../src/addons/unicode/unicode-base.js"></script>
26 25
     <script src="../../src/addons/unicode/unicode-blocks.js"></script>
27 26
     <script src="../../src/addons/unicode/unicode-categories.js"></script>
4  tests/perf/perf.js
... ...
@@ -1,11 +1,11 @@
1 1
 (function() {
2  
-    var outputEl = document.getElementById('log');
  2
+    var outputBox = document.getElementById('log');
3 3
     var suites = [];
4 4
     var bo = Benchmark.options;
5 5
     var bso = Benchmark.Suite.options;
6 6
 
7 7
     function log(msg) {
8  
-        outputEl.innerHTML += msg.replace(/\n/g, '<br>');
  8
+        outputBox.insertAdjacentHTML('beforeend', msg.replace(/\n/g, '<br>'));
9 9
     }
10 10
 
11 11
     window.run = function() {

0 notes on commit d8cf371

Please sign in to comment.
Something went wrong with that request. Please try again.