Merge "Generate HTML tag using HTML class"
This commit is contained in:
commit
5fef05a7f3
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue