Disable overwriting of the fallback image

The style information for the fallback image is quite sophisticated
and should not be changed.

Bug: 72626
Change-Id: I553cf7209d87517b8c8841cc25df74ebd4c683f4
This commit is contained in:
physikerwelt (Moritz Schubotz) 2014-11-03 00:44:08 +01:00 committed by Physikerwelt
parent bc52c77d24
commit 248ea7ea91
1 changed files with 1 additions and 2 deletions

View File

@ -370,10 +370,9 @@ class MathMathML extends MathRenderer {
'\'); background-repeat: no-repeat; background-size: 100% 100%;';
$this->correctSvgStyle( $this->getSvg(), $style );
if ( $class ) { $attribs['class'] = $class; }
if ( $style ) { $attribs['style'] = $style; }
// Don't use an empty span, as that is going to be stripped by HTML tidy
// when enabled (which is true in production).
return Xml::element( 'meta', $this->getAttributes( 'span', $attribs , array( 'aria-hidden' => 'true' ) ) );
return Xml::element( 'meta', $this->getAttributes( 'span', $attribs , array( 'aria-hidden' => 'true', 'style' => $style ) ) );
}