RESOLVED FIXED 261376
AX: No accessibility label is exposed for display:contents role="treeitem" elements that have a newline before their child text
https://bugs.webkit.org/show_bug.cgi?id=261376
Summary AX: No accessibility label is exposed for display:contents role="treeitem" el...
Tyler Wilcock
Reported 2023-09-09 13:26:43 PDT
...
Attachments
Patch (9.43 KB, patch)
2023-09-09 13:33 PDT, Tyler Wilcock
no flags
Patch (9.64 KB, patch)
2023-09-09 14:24 PDT, Tyler Wilcock
no flags
Patch (9.61 KB, patch)
2023-09-09 14:30 PDT, Tyler Wilcock
no flags
Patch (9.61 KB, patch)
2023-09-09 14:31 PDT, Tyler Wilcock
no flags
Patch (9.66 KB, patch)
2023-09-09 17:46 PDT, Tyler Wilcock
no flags
Radar WebKit Bug Importer
Comment 1 2023-09-09 13:26:55 PDT
Tyler Wilcock
Comment 2 2023-09-09 13:33:31 PDT
Tyler Wilcock
Comment 3 2023-09-09 13:36:29 PDT
Comment on attachment 467622 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=467622&action=review > LayoutTests/accessibility/display-contents/tree-and-treeitems-expected.txt:14 > + AXDescription: Animals Prior to this patch, this description was blank. > LayoutTests/accessibility/display-contents/tree-and-treeitems-expected.txt:25 > + AXDescription: Birds Prior to this patch, this description was "Birds Cats", even though "Cats" is the text under an entirely different element.
chris fleizach
Comment 4 2023-09-09 14:04:26 PDT
Comment on attachment 467622 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=467622&action=review > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:2392 > + if (childParentElement && is<Element>(node) && childParentElement != node) does it matter that node is an Element at this place?
Tyler Wilcock
Comment 5 2023-09-09 14:24:09 PDT
Tyler Wilcock
Comment 6 2023-09-09 14:24:59 PDT
(In reply to chris fleizach from comment #4) > Comment on attachment 467622 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=467622&action=review > > > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:2392 > > + if (childParentElement && is<Element>(node) && childParentElement != node) > > does it matter that node is an Element at this place? Fixed!
Tyler Wilcock
Comment 7 2023-09-09 14:30:41 PDT
Tyler Wilcock
Comment 8 2023-09-09 14:31:59 PDT
Tyler Wilcock
Comment 9 2023-09-09 17:46:36 PDT
EWS
Comment 10 2023-09-10 00:14:18 PDT
Committed 267839@main (6d76fb13fc78): <https://commits.webkit.org/267839@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 467627 [details].
Note You need to log in before you can comment on or make changes to this bug.