Skip to content

Commit 5cc3994

Browse files
authored
Rollup merge of #84340 - notriddle:patch-4, r=GuillaumeGomez
rustdoc: Show nag box on IE11 Rustdoc doesn't work on IE11. It's been broken for months, it isn't supported by the [tiered browser support list], it's even more severely broken on other Rust websites, and IE11 doesn't support the `<details>` tag that we want to use. In the interest of honesty, let's give an actual error message for anyone on IE11. [tiered browser support list]: https://github.com/rust-lang/rfcs/blob/master/text/1985-tiered-browser-support.md
2 parents 9f03385 + 20c3627 commit 5cc3994

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustdoc/html/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ crate fn render<T: Print, S: Print>(
6868
</style>\
6969
</head>\
7070
<body class=\"rustdoc {css_class}\">\
71-
<!--[if lte IE 8]>\
71+
<!--[if lte IE 11]>\
7272
<div class=\"warning\">\
7373
This old browser is unsupported and will most likely display funky \
7474
things.\

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ function hideThemeButtonState() {
12811281
if (currentType) {
12821282
currentType = currentType.getElementsByClassName("rust")[0];
12831283
if (currentType) {
1284-
currentType.classList.forEach(function(item) {
1284+
onEachLazy(currentType.classList, function(item) {
12851285
if (item !== "main") {
12861286
className = item;
12871287
return true;

0 commit comments

Comments
 (0)