Fix to avoid IE "compatibility view"
authoryaron <yaron57@gmail.com>
Mon, 23 Dec 2013 18:11:16 +0000 (21:11 +0300)
committerSiebrand <siebrand@wikimedia.org>
Mon, 23 Dec 2013 21:41:58 +0000 (21:41 +0000)
Bug: 25378
Bug: 49548
Bug: 54343
Change-Id: I1e94128e8578e3ac3ab7a64bbc0431a454085d02

includes/OutputPage.php

index b6a8d24..9866e2c 100644 (file)
@@ -2510,6 +2510,10 @@ $templates
 
                $ret .= Html::element( 'title', null, $this->getHTMLTitle() ) . "\n";
 
+               // Avoid Internet Explorer "compatibility view", so that
+               // jQuery can work correctly.
+               $ret .= Html::element( 'meta', array( 'http-equiv' => 'X-UA-Compatible', 'content' => 'IE=EDGE' ) );
+
                $ret .= implode( "\n", array(
                        $this->getHeadLinks(),
                        $this->buildCssLinks(),