From e2e94d3c45d25f07df7fdd4c55709805251e4ea4 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 11 Sep 2014 13:14:38 -0400 Subject: [PATCH] Check for undefined rather than false when deciding which attributes to allow for \mmlToken. Resolves issue #913. --- unpacked/jax/input/TeX/jax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js index adb3bb619..38c868b25 100644 --- a/unpacked/jax/input/TeX/jax.js +++ b/unpacked/jax/input/TeX/jax.js @@ -1476,7 +1476,7 @@ match = attr.match(/^([a-z]+)\s*=\s*(\'[^']*'|"[^"]*"|[^ ]*)\s*/i); if (!match) {TEX.Error(["InvalidMathMLAttr","Invalid MathML attribute: %1",attr])} - if (!MML[type].prototype.defaults[match[1]] && !this.MmlTokenAllow[match[1]]) { + if (MML[type].prototype.defaults[match[1]] == null && !this.MmlTokenAllow[match[1]]) { TEX.Error(["UnknownAttrForElement", "%1 is not a recognized attribute for %2", match[1],type]);