innerText -> innerHTML to make auto_tests/misc/local.html work in Firefox
authorDan Vanderkam <dan@dygraphs.com>
Wed, 25 Jul 2012 17:10:11 +0000 (13:10 -0400)
committerDan Vanderkam <dan@dygraphs.com>
Wed, 25 Jul 2012 17:10:11 +0000 (13:10 -0400)
auto_tests/misc/local.html

index 961a9d5..5afde2d 100644 (file)
     var summary = { failed: 0, passed: 0 };
     postResults(results, summary);
     resultsDiv.appendChild(document.createElement("hr"));
-    document.getElementById('summary').innerText = "(" + summary.failed + " failed, " + summary.passed + " passed)";
+    document.getElementById('summary').innerHTML = "(" + summary.failed + " failed, " + summary.passed + " passed)";
   }
 
   function createResultsDiv() {
@@ -236,7 +236,7 @@ if (selector != null) { // running a test
   var createLink = function(parent, text, url) {
     var li = createAttached("li", parent);
     var a = createAttached("a", li);
-    a.innerText = text;
+    a.innerHTML = text;
     a.href = url;
   }
   if (tc == null) {