]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
wordriver not breaking firefox 3.6
authorScottDowne <sdowne@learn.senecac.on.ca>
Fri, 10 Jun 2011 15:21:28 +0000 (11:21 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Fri, 10 Jun 2011 15:21:28 +0000 (11:21 -0400)
plugins/wordriver/popcorn.wordriver.js

index 2fe6359c0d3613094201f83de8d4712357ca28c5..a863c10e55572b19521c9aa4e64333cbdfccec52 100644 (file)
@@ -23,7 +23,8 @@
       supports = {},
       prop;
 
-  document.head.appendChild( span );
+  document.getElementsByTagName("head")[0].appendChild( span );
+
 
   for ( var sIdx = 0, sLen = specProp.length; sIdx < sLen; sIdx++ ) {
 
@@ -40,7 +41,7 @@
   }
 
   // Garbage collect support test span
-  document.head.removeChild( span );
+  document.getElementsByTagName("head")[0].appendChild( span );
 
   Popcorn.plugin( "wordriver" , {