Skip to content

Commit 17cd334

Browse files
committed
Merge pull request #1465 from dpvc/issue1437
Don't set role in CHTML and HTML-CSS output. Resolves issue #1437.
2 parents ba2b068 + 902aa2b commit 17cd334

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

unpacked/jax/output/CommonHTML/jax.js

-1
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,6 @@
17221722
}
17231723
var alttext = this.Get("alttext");
17241724
if (alttext && !node.getAttribute("aria-label")) node.setAttribute("aria-label",alttext);
1725-
if (!node.getAttribute("role")) node.setAttribute("role","math");
17261725
if (this.CHTML.pwidth) {
17271726
node.parentNode.style.width = this.CHTML.pwidth;
17281727
node.parentNode.style.minWidth = this.CHTML.mwidth||CHTML.Em(this.CHTML.w);

unpacked/jax/output/HTML-CSS/jax.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@
567567
{prev.parentNode.removeChild(prev)}
568568
//
569569
// 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
571571
//
572572
jax = script.MathJax.elementJax; if (!jax) continue;
573573
jax.HTMLCSS = {display: (jax.root.Get("display") === "block")}
@@ -2902,7 +2902,6 @@
29022902
span = this.HTMLcreateSpan(nobr);
29032903
var alttext = this.Get("alttext");
29042904
if (alttext && !span.getAttribute("aria-label")) span.setAttribute("aria-label",alttext);
2905-
if (!span.getAttribute("role")) span.setAttribute("role","math");
29062905
stack = HTMLCSS.createStack(span); box = HTMLCSS.createBox(stack);
29072906
// Move font-size from outer span to stack to avoid line separation
29082907
// problem in strict HTML mode

unpacked/jax/output/PlainSource/jax.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
prev.parentNode.removeChild(prev);
7070
}
7171
//
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
7473
//
7574
jax = script.MathJax.elementJax;
7675
if (!jax) continue;

unpacked/jax/output/PreviewHTML/jax.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
{prev.parentNode.removeChild(prev)}
190190
//
191191
// 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
193193
//
194194
jax = script.MathJax.elementJax; if (!jax) continue;
195195
jax.PHTML = {display: (jax.root.Get("display") === "block")}

0 commit comments

Comments
 (0)