[wp-trac] [WordPress Trac] #55717: aria-hidden="true" attribute in comment template for visible text (required fields)

WordPress Trac noreply at wordpress.org
Thu May 12 15:26:07 UTC 2022


#55717: aria-hidden="true" attribute in comment template for visible text (required
fields)
---------------------------+-----------------------------
 Reporter:  juliemoynat    |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Comments       |    Version:  5.9.3
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 Hi,

 In the comment form, the aria-hidden="true" attribute is used on the
 sentence explaining which are the required fields and on the tag around
 the asterisk (*) for each required field.

 I think it's not correct because, as you can see it in
 [https://webaim.org/projects/screenreadersurvey9/#disabilitytypes this
 survey of WebAIM], blind people are not the only ones who use a screen
 reader. So, if a sighted person wants to make their screen reader reads
 the text, it will not work.

 I think the aria-hidden="true" attributes should simply be removed.

 The code is in the wp-includes/comment-template.php file
 ([https://developer.wordpress.org/reference/functions/comment_form/ you
 can see it in the documentation]).

 Thanks

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55717>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list