[wp-trac] [WordPress Trac] #47975: Prevent aria-describedby broken reference in `comment_form()`
WordPress Trac
noreply at wordpress.org
Wed Sep 11 01:50:34 UTC 2019
#47975: Prevent aria-describedby broken reference in `comment_form()`
-------------------------------------+-------------------------------------
Reporter: afercia | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: Comments | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit- | Focuses: accessibility,
tests | template
-------------------------------------+-------------------------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"46090" 46090]:
{{{
#!CommitTicketReference repository="" revision="46090"
Accessibility: Comments: In `comment_form()`, remove `aria-describedby`
attribute from the email field if there's no associated description in the
`comment_notes_before` argument.
The attribute is meant to communicate to user agents and assistive
technologies that the element has a description. If the referenced
description is missing, it will be flagged as failure by any automated
accessibility checker tool and, most importantly, is potentially confusing
for assistive technologies users.
Props afercia, joedolson, dinhtungdu, donmhico, SergeyBiryukov.
Fixes #47975.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47975#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list