www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9b485668e141536d97b23d1a87b48a7aac3b59ed
parent 05c93de747103440434518cc25e63209d0471814
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 29 Apr 2013 16:13:04 -0400

Test value for boolean using toLowerCase()

Diffstat:
Munpacked/jax/input/TeX/jax.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js @@ -1418,7 +1418,8 @@ if (!MML[type].prototype.defaults[match[1]] && !this.MmlTokenAllow[match[1]]) {TEX.Error(match[1]+" is not a recognized attribute for "+type)} var value = match[2].replace(/^(['"])(.*)\1$/,"$2"); - if (value === "true") {value = true} else if (value === "false") {value = false} + if (value.toLowerCase() === "true") {value = true} + else if (value.toLowerCase() === "false") {value = false} def[match[1]] = value; def.attrNames.push(match[1]); attr = attr.substr(match[0].length);