File tree 4 files changed +3
-6
lines changed
4 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1722
1722
}
1723
1723
var alttext = this . Get ( "alttext" ) ;
1724
1724
if ( alttext && ! node . getAttribute ( "aria-label" ) ) node . setAttribute ( "aria-label" , alttext ) ;
1725
- if ( ! node . getAttribute ( "role" ) ) node . setAttribute ( "role" , "math" ) ;
1726
1725
if ( this . CHTML . pwidth ) {
1727
1726
node . parentNode . style . width = this . CHTML . pwidth ;
1728
1727
node . parentNode . style . minWidth = this . CHTML . mwidth || CHTML . Em ( this . CHTML . w ) ;
Original file line number Diff line number Diff line change 567
567
{ prev . parentNode . removeChild ( prev ) }
568
568
//
569
569
// Add the span, and a div if in display mode,
570
- // then set the role and mark it as being processed
570
+ // then mark it as being processed
571
571
//
572
572
jax = script . MathJax . elementJax ; if ( ! jax ) continue ;
573
573
jax . HTMLCSS = { display : ( jax . root . Get ( "display" ) === "block" ) }
2902
2902
span = this . HTMLcreateSpan ( nobr ) ;
2903
2903
var alttext = this . Get ( "alttext" ) ;
2904
2904
if ( alttext && ! span . getAttribute ( "aria-label" ) ) span . setAttribute ( "aria-label" , alttext ) ;
2905
- if ( ! span . getAttribute ( "role" ) ) span . setAttribute ( "role" , "math" ) ;
2906
2905
stack = HTMLCSS . createStack ( span ) ; box = HTMLCSS . createBox ( stack ) ;
2907
2906
// Move font-size from outer span to stack to avoid line separation
2908
2907
// problem in strict HTML mode
Original file line number Diff line number Diff line change 69
69
prev . parentNode . removeChild ( prev ) ;
70
70
}
71
71
//
72
- // Add the span, and a div if in display mode,
73
- // then set the role and mark it as being processed
72
+ // Add the span, and a div if in display mode
74
73
//
75
74
jax = script . MathJax . elementJax ;
76
75
if ( ! jax ) continue ;
Original file line number Diff line number Diff line change 189
189
{ prev . parentNode . removeChild ( prev ) }
190
190
//
191
191
// Add the span, and a div if in display mode,
192
- // then set the role and mark it as being processed
192
+ // then mark it as being processed
193
193
//
194
194
jax = script . MathJax . elementJax ; if ( ! jax ) continue ;
195
195
jax . PHTML = { display : ( jax . root . Get ( "display" ) === "block" ) }
You can’t perform that action at this time.
0 commit comments