Check for undefined rather than false when deciding which attributes to allow for \mmlToken. Resolves issue #913.
This commit is contained in:
parent
74253a955f
commit
e2e94d3c45
|
@ -1476,7 +1476,7 @@
|
||||||
match = attr.match(/^([a-z]+)\s*=\s*(\'[^']*'|"[^"]*"|[^ ]*)\s*/i);
|
match = attr.match(/^([a-z]+)\s*=\s*(\'[^']*'|"[^"]*"|[^ ]*)\s*/i);
|
||||||
if (!match)
|
if (!match)
|
||||||
{TEX.Error(["InvalidMathMLAttr","Invalid MathML attribute: %1",attr])}
|
{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",
|
TEX.Error(["UnknownAttrForElement",
|
||||||
"%1 is not a recognized attribute for %2",
|
"%1 is not a recognized attribute for %2",
|
||||||
match[1],type]);
|
match[1],type]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user