Skip to content

Commit f583c81

Browse files
committed
avoid attributes, for echidna validation
1 parent a164ff2 commit f583c81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,13 @@
132132
// echidna doesn't allow mathml a
133133
if (mclass.includes("mathmla")) {
134134
m.innerHTML=m.innerHTML
135-
.replace(/a href="(.*)"/g,"mrow tabindex=\"0\" style=\"cursor:pointer\" onclick=\"document.location='$1'\"")
135+
.replace(/<a/g,"<mrow")
136136
.replace(/<\/a>/g, "</mrow>");
137+
m.tabIndex=0
138+
m.addEventListener("click", () => {
139+
// just one example for now.
140+
document.location="https://openmath.org/cd/transc1.html#arccsch";
141+
});
137142
}
138143
var atext;
139144
var aattrib=mmllist[i].getAttribute("alttext");

0 commit comments

Comments
 (0)