Skip to content

Commit c3b149c

Browse files
committed
Fix an infinite loop in IE/quirks mode when linebreaking is performed (HTML-CSS output)
1 parent 4522a15 commit c3b149c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jax/output/HTML-CSS/autoload/multiline.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
325325
HTMLcreateSliceSpan: function (span) {
326326
var SPAN = this.HTMLspanElement(), n = 0;
327327
var LAST = SPAN; while (LAST.nextMathJaxSpan) {LAST = LAST.nextMathJaxSpan; n++}
328-
var SLICE = SPAN.cloneNode(false); LAST.nextMathJaxSpan = SLICE;
328+
var SLICE = SPAN.cloneNode(false); LAST.nextMathJaxSpan = SLICE; SLICE.nextMathJaxSpan = null;
329329
SLICE.id += "-MathJax-Continue-"+n;
330330
SLICE.bbox = this.HTMLemptyBBox({});
331331
return span.appendChild(SLICE);

0 commit comments

Comments
 (0)