mathjax / MathJax-a11y

MathJax Accessibility extensions
https://mathjax.github.io/MathJax-a11y/
Apache License 2.0
35 stars 19 forks source link

empty xmlns causes math processing errors #220

Closed pkra closed 6 years ago

pkra commented 7 years ago

E.g.,

<math xmlns="">   <mi>x</mi> </math>

When activating the a11y extensions, there is a processing error.

(Reproduce on Chrome 62)

dpvc commented 7 years ago

OK, this is due to line 146 in semantics-enrich (and the corresponding original toMathML extension), which adds a namespace if there isn't one. But it considers a blank xmlns as missing. I will make a PR for it.