Generate HTML tag using HTML class

Change-Id: I8c37fdaa112cfeac0466f4380e972b63404a8d35
This commit is contained in:
Moritz Schubotz (physikerwelt) 2018-04-23 15:34:35 +02:00
parent 6e28bf8743
commit 9fee65ae24
No known key found for this signature in database
GPG Key ID: 73D26C61BAB32E94
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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',
[