From: ScottDowne Date: Fri, 10 Jun 2011 15:21:28 +0000 (-0400) Subject: wordriver not breaking firefox 3.6 X-Git-Tag: v0.7^2~29^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=75f3605008b7ea1ea7bb498989afde53b78c990b;p=popcorn-js.git wordriver not breaking firefox 3.6 --- diff --git a/plugins/wordriver/popcorn.wordriver.js b/plugins/wordriver/popcorn.wordriver.js index 2fe6359..a863c10 100644 --- a/plugins/wordriver/popcorn.wordriver.js +++ b/plugins/wordriver/popcorn.wordriver.js @@ -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" , {