Also make 'role' use setAttribute()
This commit is contained in:
parent
b1647c98e7
commit
9d508c72d8
|
@ -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]}
|
||||
|
|
Loading…
Reference in New Issue
Block a user