JS/IE: remove unused conditional comments

There is no IE7 support and no special handling for IE9, therefore
I removed unused conditional comments. Left IE8 there as it might ask
for special CSS - however it doesn't right now.

Also added missing iframe-class for Iframes on IE8.
This commit is contained in:
Thomas Gelf 2014-06-12 17:25:48 +00:00
parent c3eae11624
commit 0d15f24f05
1 changed files with 3 additions and 6 deletions

View File

@ -11,16 +11,13 @@ if (array_key_exists('_dev', $_GET)) {
}
$isIframe = isset($_GET['_render']) && $_GET['_render'] === 'iframe';
$iframeClass = $isIframe ? ' iframe' : '';
?><!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<html class="no-js ie8<?= $iframeClass ?>"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js<?= $isIframe ? ' iframe' : '' ?>"> <!--<![endif]-->
<html class="no-js<?= $iframeClass ?>"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>