Skip to content

Commit 22e376a

Browse files
committed
ui: remove IE workarounds; closes #5351
Some libraries may still hold compatible JS code but we will update these as we come to work on them or they are in need of updates.
1 parent b724e2e commit 22e376a

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

src/etc/inc/authgui.inc

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,7 @@ function display_error_form($text)
314314
$themename = htmlspecialchars(get_current_theme());
315315

316316
?><!doctype html>
317-
<!--[if IE 8 ]><html lang="en" class="ie ie8 lte9 lte8 no-js"><![endif]-->
318-
<!--[if IE 9 ]><html lang="en" class="ie ie9 lte9 no-js"><![endif]-->
319-
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
317+
<html lang="en" class="no-js">
320318
<head>
321319

322320
<meta charset="UTF-8" />
@@ -335,7 +333,6 @@ function display_error_form($text)
335333

336334
<script src="/ui/js/jquery-3.5.1.min.js"></script>
337335

338-
<!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><![endif]-->
339336
</head>
340337
<body class="page-login">
341338
<div id=container">
@@ -377,9 +374,7 @@ function display_login_form($Login_Error)
377374
setcookie("cookie_test", bin2hex(random_bytes(16)), time() + 3600, '/', null, $config['system']['webgui']['protocol'] == "https", true);
378375
$have_cookies = isset($_COOKIE["cookie_test"]);
379376
?><!doctype html>
380-
<!--[if IE 8 ]><html lang="en" class="ie ie8 lte9 lte8 no-js"><![endif]-->
381-
<!--[if IE 9 ]><html lang="en" class="ie ie9 lte9 no-js"><![endif]-->
382-
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
377+
<html lang="en" class="no-js">
383378
<head>
384379
<meta charset="UTF-8" />
385380
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -401,8 +396,6 @@ function display_login_form($Login_Error)
401396
<script src="<?= cache_safe("/ui/themes/{$themename}/build/js/theme.js") ?>"></script>
402397
<?php endif ?>
403398

404-
<!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><![endif]-->
405-
406399
</head>
407400
<body class="page-login">
408401

src/opnsense/mvc/app/views/layouts/default.volt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<!doctype html>
2-
<!--[if IE 8 ]><html lang="en-US" class="ie ie8 lte9 lte8 no-js"><![endif]-->
3-
<!--[if IE 9 ]><html lang="en-US" class="ie ie9 lte9 no-js"><![endif]-->
4-
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en-US" class="no-js"><!--<![endif]-->
2+
<html lang="en-US" class="no-js">
53
<head>
64

75
<meta charset="UTF-8" />

src/www/head.inc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ $pagetitle = html_safe(gentitle(array_reverse($menuBreadcrumbs), ' | '));
2929
$pagetitle .= html_safe(sprintf(' | %s.%s', $config['system']['hostname'], $config['system']['domain']));
3030

3131
?><!doctype html>
32-
<!--[if IE 8 ]><html lang="<?=system_get_language_code();?>" class="ie ie8 lte9 lte8 no-js"><![endif]-->
33-
<!--[if IE 9 ]><html lang="<?=system_get_language_code();?>" class="ie ie9 lte9 no-js"><![endif]-->
34-
<!--[if (gt IE 9)|!(IE)]><!--><html lang="<?=system_get_language_code();?>" class="no-js"><!--<![endif]-->
32+
<html lang="<?=system_get_language_code();?>" class="no-js">
3533
<head>
3634
<meta charset="UTF-8" />
3735
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -92,8 +90,6 @@ $pagetitle .= html_safe(sprintf(' | %s.%s', $config['system']['hostname'], $conf
9290
<!-- Font awesome -->
9391
<link rel="stylesheet" type="text/css" href="<?= cache_safe("/ui/css/font-awesome.min.css") ?>">
9492

95-
<!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><![endif]-->
96-
9793
<!-- nvd3 -->
9894
<link rel="stylesheet" type="text/css" href="<?= cache_safe(get_themed_filename("/css/nv.d3.css")) ?>">
9995

0 commit comments

Comments
 (0)