Bug 258548

Summary: AX: aria-required is not ignored if equivalent HTML attribute is present
Product: WebKit Reporter: Hunseop Jeong <hs85jeong>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andresg_22, cfleizach, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Hunseop Jeong 2023-06-26 21:36:12 PDT
If the equivalent HTML attribute is present, ARIA attribute should be ignored as defined in the standard(see https://www.w3.org/TR/wai-aria-1.2/#usage and https://www.w3.org/TR/core-aam-1.2/#mapping_conflicts: "When a host language declares a WAI-ARIA attribute to be in direct semantic conflict with a native attribute for a given element, user agents MUST ignore the WAI-ARIA attribute and instead use the host language attribute with the same implicit semantic.")

Spec https://www.w3.org/TR/html-aam-1.0/#att-required, 'If the element includes both the required attribute and the aria-required attribute with a valid value, User Agents MUST expose only the required attribute value.'

Example code:
<input type="text" required aria-required="false">

How to check the value:
Inspector -> Elements -> Node -> Accessibility -> Required

Expected:
Required is Yes

Actual:
Required is No
Comment 1 Radar WebKit Bug Importer 2023-06-26 21:36:24 PDT
<rdar://problem/111370591>
Comment 2 Hunseop Jeong 2023-06-26 22:39:48 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15317
Comment 3 EWS 2023-06-27 09:26:11 PDT
Committed 265552@main (640ead36a4ac): <https://commits.webkit.org/265552@main>

Reviewed commits have been landed. Closing PR #15317 and removing active labels.