Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bb09e1b5e8a67c3900c94694b1cb1bca887dbd91
https://github.com/WebKit/WebKit/commit/bb09e1b5e8a67c3900c94694b1cb1bca887dbd91
Author: Dominic Mazzoni <[email protected]>
Date: 2026-09-01 (Tue, 01 Sep 2026)
Changed paths:
A
LayoutTests/accessibility/aria-labelledby-describedby-with-list-expected.txt
A LayoutTests/accessibility/aria-labelledby-describedby-with-list.html
A
LayoutTests/accessibility/isolated-tree/aria-labelledby-describedby-with-list-expected.txt
A
LayoutTests/accessibility/isolated-tree/aria-labelledby-describedby-with-list.html
M Source/WebCore/accessibility/AccessibilityNodeObject.cpp
M Source/WebCore/accessibility/AccessibilityNodeObject.h
Log Message:
-----------
AX: VoiceOver ignores list content inside elements referenced by
aria-describedby
https://bugs.webkit.org/show_bug.cgi?id=322998
rdar://186015032
Reviewed by Tyler Wilcock.
accessibleNameForNode() always passed DescendIntoContainers::No to
textUnderElement(), so list, table, tree and canvas children were skipped.
That heuristic exists so that a focusable container does not take its entire
inner
text as its own name, which is the right behavior when deriving a name
from content in the ordinary way. It is not right when the traversal
is an aria-labelledby or aria-describedby recursion: the ACCNAME spec
requires the text of the whole referenced subtree is included.
Tests: accessibility/aria-labelledby-describedby-with-list.html
accessibility/isolated-tree/aria-labelledby-describedby-with-list.html
* LayoutTests/accessibility/aria-labelledby-describedby-with-list-expected.txt:
Added.
* LayoutTests/accessibility/aria-labelledby-describedby-with-list.html: Added.
*
LayoutTests/accessibility/isolated-tree/aria-labelledby-describedby-with-list-expected.txt:
Added.
*
LayoutTests/accessibility/isolated-tree/aria-labelledby-describedby-with-list.html:
Added.
* Source/WebCore/accessibility/AccessibilityNodeObject.cpp:
(WebCore::accessibleNameForNode):
(WebCore::AccessibilityNodeObject::textForLabelElements const):
(WebCore::AccessibilityNodeObject::labelText const):
(WebCore::AccessibilityNodeObject::descriptionForElements const):
* Source/WebCore/accessibility/AccessibilityNodeObject.h:
Canonical link: https://commits.webkit.org/320290@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications