LibWeb: Align default “th” and “td” roles with HTML-AAM spec and tests

This change aligns the default roles for “th” and “td” elements with the
requirements in the HTML-AAM spec, and with the corresponding WPT tests
at https://wpt.fyi/results/html-aam/table-roles.html, and with the
behavior in other engines.

Otherwise, without this change, the default role values for “th” and
“td” elements in some cases don’t match the behavior in other engines,
and don’t match the expected results for the corresponding WPT tests.
This commit is contained in:
sideshowbarker
2024-12-07 18:21:31 +09:00
committed by Andrew Kaster
parent 2d638485a8
commit e49fe384d1
Notes: github-actions[bot] 2024-12-12 00:02:47 +00:00
5 changed files with 252 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
Harness status: OK
Found 7 tests
7 Pass
Pass el-table
Pass el-caption
Pass el-tr-thead
Pass el-th
Pass el-tr-tbody
Pass el-th-in-row
Pass el-td