]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: Show nag box on IE10
authorMichael Howell <michael@notriddle.com>
Mon, 19 Apr 2021 18:40:25 +0000 (11:40 -0700)
committerMichael Howell <michael@notriddle.com>
Mon, 19 Apr 2021 20:39:48 +0000 (13:39 -0700)
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

src/librustdoc/html/layout.rs

index dc67a63d333991643b6b815f0ebc70f3c91a8703..fbd8f21b76adfb4eaabd21a0302951e18efc5db5 100644 (file)
@@ -68,7 +68,7 @@
     </style>\
 </head>\
 <body class=\"rustdoc {css_class}\">\
-    <!--[if lte IE 8]>\
+    <!--[if lte IE 11]>\
     <div class=\"warning\">\
         This old browser is unsupported and will most likely display funky \
         things.\