rustdoc: Show nag box on IE10

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
This commit is contained in:
Michael Howell 2021-04-19 11:40:25 -07:00
parent 41f0e13bc5
commit 9b624071d3

View File

@ -68,7 +68,7 @@ crate fn render<T: Print, S: Print>(
</style>\ </style>\
</head>\ </head>\
<body class=\"rustdoc {css_class}\">\ <body class=\"rustdoc {css_class}\">\
<!--[if lte IE 8]>\ <!--[if lte IE 11]>\
<div class=\"warning\">\ <div class=\"warning\">\
This old browser is unsupported and will most likely display funky \ This old browser is unsupported and will most likely display funky \
things.\ things.\