Merge pull request #1465 from dpvc/issue1437
Don't set role in CHTML and HTML-CSS output. Resolves issue #1437.
This commit is contained in:
commit
17cd3349c7
|
@ -1722,7 +1722,6 @@
|
||||||
}
|
}
|
||||||
var alttext = this.Get("alttext");
|
var alttext = this.Get("alttext");
|
||||||
if (alttext && !node.getAttribute("aria-label")) node.setAttribute("aria-label",alttext);
|
if (alttext && !node.getAttribute("aria-label")) node.setAttribute("aria-label",alttext);
|
||||||
if (!node.getAttribute("role")) node.setAttribute("role","math");
|
|
||||||
if (this.CHTML.pwidth) {
|
if (this.CHTML.pwidth) {
|
||||||
node.parentNode.style.width = this.CHTML.pwidth;
|
node.parentNode.style.width = this.CHTML.pwidth;
|
||||||
node.parentNode.style.minWidth = this.CHTML.mwidth||CHTML.Em(this.CHTML.w);
|
node.parentNode.style.minWidth = this.CHTML.mwidth||CHTML.Em(this.CHTML.w);
|
||||||
|
|
|
@ -567,7 +567,7 @@
|
||||||
{prev.parentNode.removeChild(prev)}
|
{prev.parentNode.removeChild(prev)}
|
||||||
//
|
//
|
||||||
// Add the span, and a div if in display mode,
|
// Add the span, and a div if in display mode,
|
||||||
// then set the role and mark it as being processed
|
// then mark it as being processed
|
||||||
//
|
//
|
||||||
jax = script.MathJax.elementJax; if (!jax) continue;
|
jax = script.MathJax.elementJax; if (!jax) continue;
|
||||||
jax.HTMLCSS = {display: (jax.root.Get("display") === "block")}
|
jax.HTMLCSS = {display: (jax.root.Get("display") === "block")}
|
||||||
|
@ -2902,7 +2902,6 @@
|
||||||
span = this.HTMLcreateSpan(nobr);
|
span = this.HTMLcreateSpan(nobr);
|
||||||
var alttext = this.Get("alttext");
|
var alttext = this.Get("alttext");
|
||||||
if (alttext && !span.getAttribute("aria-label")) span.setAttribute("aria-label",alttext);
|
if (alttext && !span.getAttribute("aria-label")) span.setAttribute("aria-label",alttext);
|
||||||
if (!span.getAttribute("role")) span.setAttribute("role","math");
|
|
||||||
stack = HTMLCSS.createStack(span); box = HTMLCSS.createBox(stack);
|
stack = HTMLCSS.createStack(span); box = HTMLCSS.createBox(stack);
|
||||||
// Move font-size from outer span to stack to avoid line separation
|
// Move font-size from outer span to stack to avoid line separation
|
||||||
// problem in strict HTML mode
|
// problem in strict HTML mode
|
||||||
|
|
|
@ -69,8 +69,7 @@
|
||||||
prev.parentNode.removeChild(prev);
|
prev.parentNode.removeChild(prev);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Add the span, and a div if in display mode,
|
// Add the span, and a div if in display mode
|
||||||
// then set the role and mark it as being processed
|
|
||||||
//
|
//
|
||||||
jax = script.MathJax.elementJax;
|
jax = script.MathJax.elementJax;
|
||||||
if (!jax) continue;
|
if (!jax) continue;
|
||||||
|
|
|
@ -189,7 +189,7 @@
|
||||||
{prev.parentNode.removeChild(prev)}
|
{prev.parentNode.removeChild(prev)}
|
||||||
//
|
//
|
||||||
// Add the span, and a div if in display mode,
|
// Add the span, and a div if in display mode,
|
||||||
// then set the role and mark it as being processed
|
// then mark it as being processed
|
||||||
//
|
//
|
||||||
jax = script.MathJax.elementJax; if (!jax) continue;
|
jax = script.MathJax.elementJax; if (!jax) continue;
|
||||||
jax.PHTML = {display: (jax.root.Get("display") === "block")}
|
jax.PHTML = {display: (jax.root.Get("display") === "block")}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user