[wp-trac] [WordPress Trac] #47975: Prevent aria-describedby broken reference in `comment_form()`

WordPress Trac noreply at wordpress.org
Fri Sep 6 14:16:39 UTC 2019


#47975: Prevent aria-describedby broken reference in `comment_form()`
--------------------------+--------------------------------------
 Reporter:  afercia       |       Owner:  joedolson
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility, template
--------------------------+--------------------------------------

Comment (by joedolson):

 Need to check for ‘email-notes’ within the description string. If they’re
 not present, but the string is non-empty, add the id to the wrapper and
 print the aria-describedby attribute. If the string is empty, don’t print
 the attribute or add any wrapper. May also need to check for the presence
 of an alternate wrapping element, as custom text might already include a
 `<p>` element.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47975#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list