WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
171178
AX: Treat cells with ARIA table cell properties as cells
https://bugs.webkit.org/show_bug.cgi?id=171178
Summary
AX: Treat cells with ARIA table cell properties as cells
Joanmarie Diggs
Reported
2017-04-22 17:16:14 PDT
This was discovered as part of the ARIA 1.1 CR testing. The failures are due to the following not being exposed as a table: <table> <tr> <td aria-colspan="2">test cell</td> </tr> </table> This strikes me as yet another case of "Why on earth would anyone do that?" And admittedly, this is an artificial/quick-and-dirty test case. That said, if an author has taken the time to use an ARIA table cell property on a table cell, I think we have expose the cell as a cell and the containing table as a table.
Attachments
Patch
(9.43 KB, patch)
2017-05-03 09:16 PDT
,
Joanmarie Diggs
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-04-22 17:16:47 PDT
<
rdar://problem/31775750
>
Joanmarie Diggs
Comment 2
2017-05-03 09:16:21 PDT
Created
attachment 308909
[details]
Patch
chris fleizach
Comment 3
2017-05-03 09:24:47 PDT
Comment on
attachment 308909
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=308909&action=review
> Source/WebCore/accessibility/AccessibilityTable.cpp:160 > + if (ariaColumnCount == -1 || ariaColumnCount > 0)
is if (!ariaColumnCount) sufficient here? or do you care if the colcount was set to -2?
> Source/WebCore/accessibility/AccessibilityTable.cpp:-169 > - if (numRows == 1 && numCols == 1)
we may want to move this to the end. so if none of the rows or cols had the aria attributes, and we have only 1 cell...
Joanmarie Diggs
Comment 4
2017-05-03 09:38:45 PDT
Comment on
attachment 308909
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=308909&action=review
>> Source/WebCore/accessibility/AccessibilityTable.cpp:160 >> + if (ariaColumnCount == -1 || ariaColumnCount > 0) > > is if (!ariaColumnCount) sufficient here? or do you care if the colcount was set to -2?
I do care. If the colcount is set to -2, the author has provided an invalid value. If we are going to respect the author's desire to expose their minimalist table as a data table, I think they should at least do us the courtesy of providing a valid value. ;) Do you think we should instead accept any non-zero value?
>> Source/WebCore/accessibility/AccessibilityTable.cpp:-169 >> - if (numRows == 1 && numCols == 1) > > we may want to move this to the end. so if none of the rows or cols had the aria attributes, and we have only 1 cell...
I am happy to make that change, but in that particular case the existing heuristic concludes it is not a data table. See the last table in the layout test. The td element with id of "cell8" is an AXGroup on your platform and an ATK_ROLE_SECTION on mine.
chris fleizach
Comment 5
2017-05-03 09:45:22 PDT
Comment on
attachment 308909
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=308909&action=review
>>> Source/WebCore/accessibility/AccessibilityTable.cpp:160 >>> + if (ariaColumnCount == -1 || ariaColumnCount > 0) >> >> is if (!ariaColumnCount) sufficient here? or do you care if the colcount was set to -2? > > I do care. If the colcount is set to -2, the author has provided an invalid value. If we are going to respect the author's desire to expose their minimalist table as a data table, I think they should at least do us the courtesy of providing a valid value. ;) > > Do you think we should instead accept any non-zero value?
probably not
>>> Source/WebCore/accessibility/AccessibilityTable.cpp:-169 >>> - if (numRows == 1 && numCols == 1) >> >> we may want to move this to the end. so if none of the rows or cols had the aria attributes, and we have only 1 cell... > > I am happy to make that change, but in that particular case the existing heuristic concludes it is not a data table. See the last table in the layout test. The td element with id of "cell8" is an AXGroup on your platform and an ATK_ROLE_SECTION on mine.
ok
WebKit Commit Bot
Comment 6
2017-05-03 10:18:46 PDT
Comment on
attachment 308909
[details]
Patch Clearing flags on attachment: 308909 Committed
r216123
: <
http://trac.webkit.org/changeset/216123
>
WebKit Commit Bot
Comment 7
2017-05-03 10:18:48 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug