From c085e6952bb1cc69cb350476057723f7d2aaaeb9 Mon Sep 17 00:00:00 2001 From: physikerwelt Date: Wed, 6 Jan 2016 23:12:56 +0100 Subject: [PATCH] Fix link to PNG fallback for IE 8 and older Change-Id: Iffb65af756a8fc53fcc9f484c783f69f8d908690 --- modules/ext.math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ext.math.js b/modules/ext.math.js index 085260d..b50b889 100644 --- a/modules/ext.math.js +++ b/modules/ext.math.js @@ -16,7 +16,7 @@ // Create a new PNG image to use as the fallback. img = document.createElement( 'img' ); url = this.style.backgroundImage.match( /url\('?([^']*)'?\)/ )[ 1 ]; - img.setAttribute( 'src', url.replace( 'mode=' + 'mathml', 'mode=' + 'png' ) ); + img.setAttribute( 'src', url.replace( 'media/math/render/svg/', 'media/math/render/png/' ) ); img.setAttribute( 'class', 'tex mwe-math-fallback-image-' + ( $( this ).hasClass( 'mwe-math-fallback-image-inline' ) ? 'inline' : 'display' ) ); img.setAttribute( 'aria-hidden', 'true' ); this.parentNode.insertBefore( img, this );