From 248ea7ea91356df96a8f1d7d71e94d4c7a73c912 Mon Sep 17 00:00:00 2001 From: "physikerwelt (Moritz Schubotz)" Date: Mon, 3 Nov 2014 00:44:08 +0100 Subject: [PATCH] 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 --- MathMathML.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MathMathML.php b/MathMathML.php index ffb6a16..0bb18f6 100644 --- a/MathMathML.php +++ b/MathMathML.php @@ -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 ) ) ); }