Skip to content

Commit e0420b4

Browse files
committed
GitHub: Get rid of spurious cells with no table in pull request comment threads.
1 parent 6b95fa2 commit e0420b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GitHubA11yFixes.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ function onNodeAdded(target) {
108108
elem.setAttribute("role", "table");
109109
for (elem of target.querySelectorAll(".table-list-item,.Box-body-row,.Box-row"))
110110
elem.setAttribute("role", "row");
111-
for (elem of target.querySelectorAll(".d-table")) {
112-
// There's one of these inside every .Box-body-row.
111+
for (elem of target.querySelectorAll(".Box-body-row,.Box-row .d-table")) {
112+
// There's one of these inside every .Box-body-row/Box-row.
113113
// It's purely presentational.
114114
elem.setAttribute("role", "presentation");
115115
// Its children are the cells, but they have no common class.

0 commit comments

Comments
 (0)