From 0a4a4d8fa519f8d83fe6a08698cfdcf9ff987676 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 22 Aug 2016 07:15:02 -0400 Subject: [PATCH] Convert booleans in math and mstyle elements (since we can't tell what the defaults should be, punt). --- unpacked/jax/input/MathML/jax.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unpacked/jax/input/MathML/jax.js b/unpacked/jax/input/MathML/jax.js index 89f6c071b..907cb6037 100644 --- a/unpacked/jax/input/MathML/jax.js +++ b/unpacked/jax/input/MathML/jax.js @@ -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");