Fix an infinite loop in IE/quirks mode when linebreaking is performed (HTML-CSS output)

This commit is contained in:
Davide P. Cervone 2012-02-17 12:04:13 -05:00
parent 4522a15f50
commit c3b149c921
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -325,7 +325,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
HTMLcreateSliceSpan: function (span) {
var SPAN = this.HTMLspanElement(), n = 0;
var LAST = SPAN; while (LAST.nextMathJaxSpan) {LAST = LAST.nextMathJaxSpan; n++}
var SLICE = SPAN.cloneNode(false); LAST.nextMathJaxSpan = SLICE;
var SLICE = SPAN.cloneNode(false); LAST.nextMathJaxSpan = SLICE; SLICE.nextMathJaxSpan = null;
SLICE.id += "-MathJax-Continue-"+n;
SLICE.bbox = this.HTMLemptyBBox({});
return span.appendChild(SLICE);