Bug 258548
| Summary: | AX: aria-required is not ignored if equivalent HTML attribute is present | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Hunseop Jeong <hs85jeong> |
| Component: | Accessibility | Assignee: | 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 | ||
Hunseop Jeong
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/111370591>
Hunseop Jeong
Pull request: https://github.com/WebKit/WebKit/pull/15317
EWS
Committed 265552@main (640ead36a4ac): <https://commits.webkit.org/265552@main>
Reviewed commits have been landed. Closing PR #15317 and removing active labels.