Convert booleans in math and mstyle elements (since we can't tell what the defaults should be, punt).

This commit is contained in:
Davide P. Cervone 2016-08-22 07:15:02 -04:00
parent e3ad30b4bd
commit 0a4a4d8fa5

View File

@ -145,6 +145,7 @@
var val = value.toLowerCase();
if (val === "true" || val === "false") {
if (typeof (defaults[name]) === "boolean" || defaults[name] === MML.INHERIT ||
mml.type === "math" || mml.type === "mstyle" ||
(defaults[name] === MML.AUTO &&
(mml.defaultDef == null || typeof(mml.defaultDef[name]) === "boolean"))) {
value = (val === "true");