Having $wgDebugToolbar = true and visiting the wiki with IE8 will give
no debug toolbar, using ?debug=true gives a "document.createElementNS is
null or not an object" javascript fatal.
Throw a error. The function 'createSvgElement' will never be called,
because profiling gives a "An ES5 compatible javascript engine
is required for the profile visualization." in IE8.
Change-Id: I763dae7459cb88f892823b9458ed6dd1dbbf3e9d
* @param string tag to create
* @return DOMElement
*/
- createSvgElement: document.createElementNS.bind( document, 'http://www.w3.org/2000/svg' ),
+ createSvgElement: document.createElementNS
+ ? document.createElementNS.bind( document, 'http://www.w3.org/2000/svg' )
+ // throw a error for browsers which does not support document.createElementNS (IE<8)
+ : function () { throw new Error( 'document.createElementNS not supported' ); },
/**
* @param DOMElement|undefined