www

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

commit 9d508c72d83a09491bb37a0278ad6164067b9029
parent b1647c98e7ba7d1c895b224baf2624088913612a
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat, 12 Sep 2015 08:38:02 -0400

Also make 'role' use setAttribute()

Diffstat:
Munpacked/MathJax.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js @@ -1048,7 +1048,9 @@ MathJax.HTML = { {def.style[id.replace(/-([a-z])/g,this.ucMatch)] = style[id]}} } MathJax.Hub.Insert(obj,def); - for (var id in def) {if (id.substr(0,5) === "aria-") obj.setAttribute(id,def[id])} + for (var id in def) { + if (id === "role" || id.substr(0,5) === "aria-") obj.setAttribute(id,def[id]); + } } if (contents) { if (!(contents instanceof Array)) {contents = [contents]}