Bug 242768

Summary: AX: AccessibilityTable::isDataTable() returns false unexpectedly when a column contains radio buttons
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, mfairchild365, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

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.