Skip to content

Commit 2562bbf

Browse files
Merge branch 'master' into telegram
2 parents 3919094 + 180e423 commit 2562bbf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

GitHubA11yFixes.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ function onNodeAdded(target) {
9595
// Make sure diff tables never get treated as a layout table.
9696
for (elem of target.querySelectorAll(".diff-table"))
9797
elem.setAttribute("role", "table");
98+
// Review comment headers.
99+
for (elem of target.querySelectorAll(".review-comment-contents > strong"))
100+
makeHeading(elem, 3);
98101
}
99102

100103
// Site-wide stuff.
@@ -108,8 +111,8 @@ function onNodeAdded(target) {
108111
elem.setAttribute("role", "table");
109112
for (elem of target.querySelectorAll(".table-list-item,.Box-body-row,.Box-row"))
110113
elem.setAttribute("role", "row");
111-
for (elem of target.querySelectorAll(".d-table")) {
112-
// There's one of these inside every .Box-body-row.
114+
for (elem of target.querySelectorAll(".Box-body-row,.Box-row .d-table")) {
115+
// There's one of these inside every .Box-body-row/Box-row.
113116
// It's purely presentational.
114117
elem.setAttribute("role", "presentation");
115118
// Its children are the cells, but they have no common class.

0 commit comments

Comments
 (0)