Opened 8 years ago
Closed 7 years ago
#39045 closed defect (bug) (fixed)
W3C Validator warning: Attribute aria-required is unnecessary for elements that have attribute required.
Reported by: | henry.wright | Owned by: | lakenh |
---|---|---|---|
Milestone: | 4.9.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | required-fields good-first-bug has-patch fixed-major |
Focuses: | accessibility | Cc: |
Description
File: wp-includes/comment-template.php
Screenshot incoming.
Attachments (2)
Change History (20)
#5
@
7 years ago
Yep 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
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
7 years ago
#9
@
7 years ago
As discussed in the ticket and meetings, the aria-required attribute was removed from this template, leaving only required.
This patch only covers the particular file that this ticket is about; there very well could be other areas in WordPress that use both of these attributes.
#11
@
7 years ago
Hi and thanks for the patch @lakenh
Tested and looks good to me :)
The only other place I found both aria-required
and required
attributes is wp-admin/includes/media.php
, but it will need a separated ticket.
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
7 years ago
#15
@
7 years ago
- Milestone changed from 5.0 to 4.9.5
As per today's bug scrub, moving this forward for inclusion in 4.9.5.
#16
@
7 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Thanks @henry.wright for the ticket!
A few notes: