Skip to content

Commit

Permalink
Add M:MROW check in AMremoveBrackets. Probably not needed anymore, bu…
Browse files Browse the repository at this point in the history
…t was for fixing issues with older IE versions. Issue #3
  • Loading branch information
drlippman committed Jul 6, 2014
1 parent e235c54 commit c90e2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ASCIIMathML.js
Expand Up @@ -538,11 +538,11 @@ function AMgetSymbol(str) {

function AMremoveBrackets(node) {
var st;
if (node.nodeName=="mrow") {
if (node.nodeName=="mrow" || node.nodeName=="M:MROW") {
st = node.firstChild.firstChild.nodeValue;
if (st=="(" || st=="[" || st=="{") node.removeChild(node.firstChild);
}
if (node.nodeName=="mrow") {
if (node.nodeName=="mrow" || node.nodeName=="M:MROW") {
st = node.lastChild.firstChild.nodeValue;
if (st==")" || st=="]" || st=="}") node.removeChild(node.lastChild);
}
Expand Down

0 comments on commit c90e2d5

Please sign in to comment.