From 9d508c72d83a09491bb37a0278ad6164067b9029 Mon Sep 17 00:00:00 2001
From: "Davide P. Cervone" <dpvc@union.edu>
Date: Sat, 12 Sep 2015 08:38:02 -0400
Subject: [PATCH] Also make 'role' use setAttribute()

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

diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js
index 62fba32df..4f0668536 100644
--- 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]}