Skip to content

Commit

Permalink
rustdoc: Show nag box on IE10
Browse files Browse the repository at this point in the history
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
  • Loading branch information
notriddle committed Apr 19, 2021
1 parent 41f0e13 commit 9b62407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ crate fn render<T: Print, S: Print>(
</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.\
Expand Down

0 comments on commit 9b62407

Please sign in to comment.