Permalink
Browse files

Use insertAdjacentHTML instead of innerHTML in perf.js.

  • Loading branch information...
1 parent face02f commit d8cf3715239faa922d4c265347fd526b497af86e @slevithan committed Aug 23, 2012
Showing with 2 additions and 3 deletions.
  1. +0 −1 tests/perf/index.html
  2. +2 −2 tests/perf/perf.js
View
@@ -21,7 +21,6 @@
<script src="../../src/xregexp.js"></script>
<script src="../../src/addons/build.js"></script>
<script src="../../src/addons/matchrecursive.js"></script>
- <script src="../../src/addons/prototypes.js"></script>
<script src="../../src/addons/unicode/unicode-base.js"></script>
<script src="../../src/addons/unicode/unicode-blocks.js"></script>
<script src="../../src/addons/unicode/unicode-categories.js"></script>
View
@@ -1,11 +1,11 @@
(function() {
- var outputEl = document.getElementById('log');
+ var outputBox = document.getElementById('log');
var suites = [];
var bo = Benchmark.options;
var bso = Benchmark.Suite.options;
function log(msg) {
- outputEl.innerHTML += msg.replace(/\n/g, '<br>');
+ outputBox.insertAdjacentHTML('beforeend', msg.replace(/\n/g, '<br>'));
}
window.run = function() {

0 comments on commit d8cf371

Please sign in to comment.