]> git.parisson.com Git - pdf.js.git/commitdiff
Fix insertAdjacentHTML for pre FF8
authornotmasteryet <async.processingjs@yahoo.com>
Fri, 26 Aug 2011 00:14:51 +0000 (19:14 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Fri, 26 Aug 2011 00:14:51 +0000 (19:14 -0500)
test/driver.js

index 9fa1cfa8ce3f2c633320321acef5c7db2ce6bce0..cfa9dff753fd8399620f0bf5699df5c0d8d94b65 100644 (file)
@@ -221,7 +221,10 @@ function checkScrolling() {
 }
 
 function log(str) {
-  stdout.insertAdjacentHTML('BeforeEnd', str);
+  if (stdout.insertAdjacentHTML)
+    stdout.insertAdjacentHTML('BeforeEnd', str);
+  else
+    stdout.innerHTML += str;
 
   if (str.lastIndexOf('\n') >= 0)
     checkScrolling();