File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 683
683
// Get the data about the math
684
684
//
685
685
var jax = script . MathJax . elementJax , math = jax . root ,
686
- span = script . previousSibling ;
687
- div = ( jax . HTMLCSS . display ? ( span || { } ) . parentNode : span ) ;
686
+ div = script . previousSibling ;
687
+ span = ( jax . HTMLCSS . display ? ( div || { } ) . firstChild || div : div ) ;
688
688
if ( ! div ) return ;
689
689
//
690
690
// Set the font metrics
Original file line number Diff line number Diff line change 315
315
// Get the data about the math
316
316
//
317
317
var jax = script . MathJax . elementJax , math = jax . root ,
318
- span = script . previousSibling ;
319
- div = ( jax . SVG . display ? ( span || { } ) . parentNode : span ) ,
318
+ div = script . previousSibling ;
319
+ span = ( jax . SVG . display ? ( div || { } ) . firstChild || div : div ) ,
320
320
localCache = ( SVG . config . useFontCache && ! SVG . config . useGlobalCache ) ;
321
321
if ( ! div ) return ;
322
322
//
You can’t perform that action at this time.
0 commit comments