Repository navigation
Conversation
The rowgroup divs serve no purpose in the example and add code that gets copied. Rows are now direct children of the table, the rowgroup row is removed from the attributes table, the zebra stripe selector no longer depends on a rowgroup, and the rowgroup regression test is removed. Closes w3c#3232
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes the two
<div role="rowgroup">wrappers from the table example, as agreed in the 2025-02-25 APG meeting: they serve no purpose in the example and only add code that people copy.table.html: the header row and the body rows are now direct children of thetableelement. Therowgrouprow is removed from the Role, Property, State, and Tabindex Attributes table.table.css: the zebra stripe selector depended on the last rowgroup, so it now uses:nth-child(even of [role="row"]). The same rows (Fred and Ralph) are shaded as before.test/tests/table_table.js: removes therowgroup-roletest, and the row, columnheader and cell tests no longer require a rowgroup ancestor.The pattern page still mentions
rowgroupas an allowed container, since it is still valid ARIA. Only the example changes.How tested
npm run regression -- test/tests/table_table.js(Firefox via geckodriver): 6 of 6 pass.npm run lint(eslint, prettier, stylelint, htmlhint, vnu, cspell): clean.Closes #3232