From 21a10de3eb061fd8a6b860fb23ed94db1af75920 Mon Sep 17 00:00:00 2001
From: Peter Krautzberger
Date: Mon, 30 Nov 2015 21:34:16 +0100
Subject: [PATCH] Update AssistiveMML
Add `role=presentation` to root element and parent of the plain MathML
Fixes #1235
---
unpacked/extensions/AssistiveMML.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/unpacked/extensions/AssistiveMML.js b/unpacked/extensions/AssistiveMML.js
index 46956e8dd..c60ea84d1 100644
--- a/unpacked/extensions/AssistiveMML.js
+++ b/unpacked/extensions/AssistiveMML.js
@@ -98,8 +98,9 @@
isMathJax: true, className: "MJX_Assistive_MathML"
});
span.innerHTML = mml;
+ frame.setAttribute("role", "presentation");
frame.firstChild.setAttribute("aria-hidden","true");
- span.setAttribute("aria-readonly","true");
+ span.setAttribute("role", "presentation");
}
state.i++;
}