Permalink
Browse files

Fix a whitespace issue in token elements with IE/quirks mode (MathML …

…input jax)
  • Loading branch information...
Davide P. Cervone
Davide P. Cervone committed Feb 17, 2012
1 parent c3b149c commit 7ce521293c10945fd729ff6f5f3c210a952b3719

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -144,9 +144,8 @@
if (child.nodeName === "#comment") continue;
if (child.nodeName === "#text") {
if (mml.isToken && !mml.mmlSelfClosing) {
- var text = this.trimSpace(child.nodeValue);
- text = text.replace(/&([a-z][a-z0-9]*);/ig,this.replaceEntity);
- mml.Append(MML.chars(text));
+ var text = child.nodeValue.replace(/&([a-z][a-z0-9]*);/ig,this.replaceEntity);
+ mml.Append(MML.chars(this.trimSpace(text)));
} else if (child.nodeValue.match(/\S/)) {
MATHML.Error("Unexpected text node: '"+child.nodeValue+"'");
}

0 comments on commit 7ce5212

Please sign in to comment.