File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3038,7 +3038,7 @@ MathJax.Hub.Startup = {
3038
3038
if ( ! BASE ) { BASE = window [ BASENAME ] = { } }
3039
3039
3040
3040
var HUB = BASE . Hub ; var STARTUP = HUB . Startup ; var CONFIG = HUB . config ;
3041
- var HEAD = document . getElementsByTagName ( "head" ) [ 0 ] ;
3041
+ var HEAD = document . head || ( document . getElementsByTagName ( "head" ) [ 0 ] ) ;
3042
3042
if ( ! HEAD ) { HEAD = document . childNodes [ 0 ] } ;
3043
3043
var scripts = ( document . documentElement || document ) . getElementsByTagName ( "script" ) ;
3044
3044
if ( scripts . length === 0 && HEAD . namespaceURI )
@@ -3170,7 +3170,7 @@ MathJax.Hub.Startup = {
3170
3170
if ( browser . hasMathPlayer ) {
3171
3171
var mathplayer = document . createElement ( "object" ) ;
3172
3172
mathplayer . id = "mathplayer" ; mathplayer . classid = "clsid:32F66A20-7614-11D4-BD11-00104BD3F987" ;
3173
- document . getElementsByTagName ( "head" ) [ 0 ] . appendChild ( mathplayer ) ;
3173
+ HEAD . appendChild ( mathplayer ) ;
3174
3174
document . namespaces . add ( "m" , "http://www.w3.org/1998/Math/MathML" ) ;
3175
3175
browser . mpNamespace = true ;
3176
3176
if ( document . readyState && ( document . readyState === "loading" ||
You can’t perform that action at this time.
0 commit comments