diff --git a/src/MathMathML.php b/src/MathMathML.php index 546a578..e15a782 100644 --- a/src/MathMathML.php +++ b/src/MathMathML.php @@ -415,7 +415,7 @@ class MathMathML extends MathRenderer { $attribs['class'] = $class; } - return Xml::element( 'img', $this->getAttributes( 'span', $attribs, [ + return Html::element( 'img', $this->getAttributes( 'span', $attribs, [ 'aria-hidden' => 'true', 'style' => $this->mathoidStyle, 'alt' => $this->tex diff --git a/src/MathSource.php b/src/MathSource.php index 8047fcb..9a9cf85 100644 --- a/src/MathSource.php +++ b/src/MathSource.php @@ -41,7 +41,7 @@ class MathSource extends MathRenderer { } else { $class = 'mwe-math-fallback-source-inline'; } - return Xml::element( 'span', + return Html::element( 'span', $this->getAttributes( 'span', [