Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c4647c597529734f6e159485f035f2de45744351
      
https://github.com/WebKit/WebKit/commit/c4647c597529734f6e159485f035f2de45744351
  Author: Tyler Wilcock <[email protected]>
  Date:   2026-01-20 (Tue, 20 Jan 2026)

  Changed paths:
    A LayoutTests/accessibility/aria-labelledby-on-checkbox-expected.txt
    A LayoutTests/accessibility/aria-labelledby-on-checkbox.html
    M Source/WebCore/accessibility/AccessibilityNodeObject.cpp

  Log Message:
  -----------
  AX: aria-labelledby uses referenced checkbox value instead of name
https://bugs.webkit.org/show_bug.cgi?id=284774
rdar://141564913

Reviewed by Chris Fleizach.

When computing accessible names for aria-labelledby references, checkboxes
and radio buttons incorrectly returned their value attribute instead of
their label text. Fix by looking up associated label elements for these
input types.

Test: accessibility/aria-labelledby-on-checkbox.html

* LayoutTests/accessibility/aria-labelledby-on-checkbox-expected.txt: Added.
* LayoutTests/accessibility/aria-labelledby-on-checkbox.html: Added.
* Source/WebCore/accessibility/AccessibilityNodeObject.cpp:
(WebCore::accessibleNameForNode):

Canonical link: https://commits.webkit.org/305894@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to