Actually delete the previews rather than just hide them (some screen readers don't properly handle them)
This commit is contained in:
parent
5cafb84908
commit
301c7d1f2e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1629,10 +1629,7 @@ MathJax.Hub = {
|
|||
//
|
||||
result = MathJax.OutputJax[jax.outputJax].Process(script,state);
|
||||
script.MathJax.state = STATE.PROCESSED; state.i++;
|
||||
if (script.MathJax.preview) {
|
||||
script.MathJax.preview.style.display = "none";
|
||||
script.MathJax.preview.style.visibility = "hidden"; // hide from screen readers
|
||||
}
|
||||
if (script.MathJax.preview) {script.MathJax.preview.innerHTML = ""}
|
||||
//
|
||||
// Signal that new math is available
|
||||
//
|
||||
|
@ -1684,10 +1681,7 @@ MathJax.Hub = {
|
|||
});
|
||||
}
|
||||
script.parentNode.insertBefore(error,script);
|
||||
if (script.MathJax.preview) {
|
||||
script.MathJax.preview.style.display = "none";
|
||||
script.MathJax.preview.style.visibility = "hidden"; // hide from screen readers
|
||||
}
|
||||
if (script.MathJax.preview) {script.MathJax.preview.innerHTML = ""}
|
||||
this.lastError = err;
|
||||
},
|
||||
|
||||
|
|
|
@ -609,8 +609,7 @@
|
|||
// Remove the preview, if any
|
||||
//
|
||||
if (data.preview) {
|
||||
data.preview.style.display = "none";
|
||||
data.preview.style.visibility = "hidden"; // hide from screen readers
|
||||
data.preview.innerHTML = "";
|
||||
script.MathJax.preview = data.preview;
|
||||
delete data.preview;
|
||||
}
|
||||
|
|
|
@ -329,8 +329,7 @@
|
|||
// Remove the preview, if any
|
||||
//
|
||||
if (data.preview) {
|
||||
data.preview.style.display = "none";
|
||||
data.preview.style.visibility = "hidden"; // hide from screen readers
|
||||
data.preview.innerHTML = "";
|
||||
script.MathJax.preview = data.preview;
|
||||
delete data.preview;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user