Skip to content

Commit 204ffbb

Browse files
committed
Don't set display:none (since element is empty anyway), as this can cause Safari craches. Resolves issue #2005.
1 parent c4eca32 commit 204ffbb

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@
611611
//
612612
if (data.preview) {
613613
data.preview.innerHTML = "";
614-
data.preview.style.display = "none";
615614
script.MathJax.preview = data.preview;
616615
delete data.preview;
617616
}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,7 @@
767767
if (script && script.parentNode && script.MathJax.elementJax) {
768768
var div = (script.MathJax.elementJax.HTMLCSS||{}).div;
769769
if (div) {div.className = div.className.split(/ /)[0]}
770-
if (script.MathJax.preview) {
771-
script.MathJax.preview.innerHTML = "";
772-
script.MathJax.preview.style.display = "none";
773-
}
770+
if (script.MathJax.preview) script.MathJax.preview.innerHTML = "";
774771
}
775772
}
776773
//

unpacked/jax/output/PreviewHTML/jax.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@
268268
//
269269
if (data.preview) {
270270
data.preview.innerHTML = "";
271-
data.preview.style.display = "none";
272271
script.MathJax.preview = data.preview;
273272
delete data.preview;
274273
}

unpacked/jax/output/SVG/jax.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@
402402
//
403403
if (data.preview) {
404404
data.preview.innerHTML = "";
405-
data.preview.style.display = "none";
406405
script.MathJax.preview = data.preview;
407406
delete data.preview;
408407
}

0 commit comments

Comments
 (0)