Open giacomo-petri opened 2 months ago
Discussed for a bit in triage at today's meeting: https://www.w3.org/2024/09/05-aria-minutes#t01
TBH anyone can do the work to compile the list of rules in each system for comparison since the code is heavily commented.
I mentioned this What Even Is A Table presentation, from State Of The Browser 5 conference back in 2015, in this week's call. All the conference videos aren't online anymore, but I luckily took notes before the videos were removed. This was the list of findings, which may not be accurate anymore for the browsers that still exist, but do paint a picture of the complexity of browsers trying to decide whether a table is for layout or data:
summary
is classed as a table by Chrome and Safari but not IEborder:bottom
on the table cells is classed as a table in all browsersbackground-color
on the table cells is classed as a table in all browsersbackground-color
on the table cells and border-collapse:collapse
on the table isn’t classed as a table in Chrome or Safaridisplay:block
isn’t classed as a table in Chrome or SafariMmm. Looks like @aleventhal's links are probably more useful, although we're both missing Firefox. I've had a look in the Gecko-Dev repo, but nothing obvious jumped out at me.
@jnurthen yup! Nice :)
Creating a paragraph without using table headers can be an effective way to present information in a more narrative style. For instance, if you want to convey data about various fruits, you might say:
"Apples are rich in fiber and vitamin C, making them a popular choice for a healthy snack. Bananas, known for their potassium content, provide table tops canada quick energy and are great for athletes. Oranges are celebrated for their high vitamin C levels and refreshing taste, often enjoyed as juice
The implicit role of
<table>
elements is alwaysrole="table"
.However, when a table lacks headers, browsers handle it inconsistently:
This inconsistency can create challenges for implementors implementing rules like ARIA in HTML, as it affects how table rules and related rules for descendant elements are applied.
It may be beneficial to clearly specify in the standards how user agents should handle tables without headers to ensure consistency.