[wp-trac] [WordPress Trac] #43415: Remove "aria-required" attribute when "required" attribute is already used
WordPress Trac
noreply at wordpress.org
Sun Feb 25 23:40:25 UTC 2018
#43415: Remove "aria-required" attribute when "required" attribute is already used
--------------------------+-----------------------------
Reporter: audrasjb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Quote from Andrea in #39045 :
> There was a time when both were needed. Today, it's safe to use just
required. Instead, aria-required is for custom, non-native, controls.
Also, just stumbled upon a good feedback from Adrian Roselli:
https://stackoverflow.com/a/37975985
I found both `aria-required` and `required` attributes used in the
following file:
- `wp-admin/includes/media.php` L. 1672, 1674, 1849, 2756, 2763 and note
also that it should use `required` instead of `aria-required` at L. 2772.
Related: #39045
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43415>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list