Convert booleans in math and mstyle elements (since we can't tell what the defaults should be, punt).
This commit is contained in:
parent
e3ad30b4bd
commit
0a4a4d8fa5
|
@ -145,6 +145,7 @@
|
||||||
var val = value.toLowerCase();
|
var val = value.toLowerCase();
|
||||||
if (val === "true" || val === "false") {
|
if (val === "true" || val === "false") {
|
||||||
if (typeof (defaults[name]) === "boolean" || defaults[name] === MML.INHERIT ||
|
if (typeof (defaults[name]) === "boolean" || defaults[name] === MML.INHERIT ||
|
||||||
|
mml.type === "math" || mml.type === "mstyle" ||
|
||||||
(defaults[name] === MML.AUTO &&
|
(defaults[name] === MML.AUTO &&
|
||||||
(mml.defaultDef == null || typeof(mml.defaultDef[name]) === "boolean"))) {
|
(mml.defaultDef == null || typeof(mml.defaultDef[name]) === "boolean"))) {
|
||||||
value = (val === "true");
|
value = (val === "true");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user