Bug 242768 - AX: AccessibilityTable::isDataTable() returns false unexpectedly when a column contains radio buttons
Summary: AX: AccessibilityTable::isDataTable() returns false unexpectedly when a colum...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-14 14:43 PDT by James Craig
Modified: 2022-07-15 05:49 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Craig 2022-07-14 14:43:25 PDT
Report that AccessibilityTable::isDataTable() returns false unexpectedly when a column contains radio buttons.
https://github.com/WebKit/webkit/blob/main/Source/WebCore/accessibility/AccessibilityTable.cpp#L111

Test Case demonstrating the behavior.
https://codepen.io/mfairchild365/full/oNqYwLK

Context of bug report:
https://twitter.com/mfairchild365/status/1547601825070600194
Comment 1 Radar WebKit Bug Importer 2022-07-14 14:43:34 PDT
<rdar://problem/97036244>
Comment 2 James Craig 2022-07-14 14:45:04 PDT
Speculation: Possibly because the column has no header? I wonder whether the same is true of checkboxes in the same scenario, or when the radio is in the same cell as its label.
Comment 3 mfairchild365 2022-07-15 05:49:00 PDT
I worked up some more examples and James Craig is right. This has nothing to do with the radio buttons. It has everything to do with the fact that the first column does not have a header. I'd still consider this to be a bug because the rest of the columns DO have headers and it is a data table.