about summary refs log tree commit diff
path: root/src/tools/html-checker
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-25 21:41:57 +0000
committerbors <bors@rust-lang.org>2021-07-25 21:41:57 +0000
commit76a3b609d0b93c5d8da5e4e3db37bd03e5cb1c30 (patch)
treecbdb085960c1960f952ed572e1dc9bf497f12146 /src/tools/html-checker
parente742158ef5483b9cd756b193402329af3d4ba177 (diff)
Rustdoc accessibility: use real headers for doc items
Part of #87059

Partially reverts #84703

Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
Diffstat (limited to 'src/tools/html-checker')
-rw-r--r--src/tools/html-checker/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/html-checker/main.rs b/src/tools/html-checker/main.rs
index bf2830254e8..7bdf527d884 100644
--- a/src/tools/html-checker/main.rs
+++ b/src/tools/html-checker/main.rs
@@ -15,6 +15,11 @@ fn check_html_file(file: &Path) -> usize {
         "MISSING_ENDTAG_BEFORE",
         "INSERTING_TAG",
         "DISCARDING_UNEXPECTED",
+        // This error is caused by nesting the Notable Traits tooltip within an <h4> tag.
+        // The solution is to avoid doing that, but we need to have the <h4> tags for accessibility
+        // reasons, and we need the Notable Traits tooltip to help everyone understand the Iterator
+        // combinators
+        "TAG_NOT_ALLOWED_IN",
     ];
     let to_mute_s = to_mute.join(",");
     let mut command = Command::new("tidy");