[wp-trac] [WordPress Trac] #47766: Duplicate label in default WordPress comment field

WordPress Trac noreply at wordpress.org
Tue Jul 23 13:44:59 UTC 2019


#47766: Duplicate label in default WordPress comment field
---------------------------+-----------------------------
 Reporter:  samvimes       |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  minor          |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 The last form field titled "Website" in the default WordPress comment form
 has two label for the same element, violating WCAG criterium 3.3.2 Labels
 or Instructions and section 502 guideline 1194.22 (n) Information required
 to complete electronic forms online

 Example of HTML from the affected form field

 {{{
 <p class="comment-form-url ast-col-xs-12 ast-col-sm-12 ast-col-md-4 ast-
 col-lg-4">
 <label for="url">
 <label for="url" class="screen-reader-text">Webside</label>
 <input id="url" name="url" type="text" value="" placeholder="Webside"
 size="30"></label>
 </p>
 }}}

 Example of HTML produced by the email field that does not create two
 labels for the same thing


 {{{
 <p class="comment-form-email ast-col-xs-12 ast-col-sm-12 ast-col-md-4 ast-
 col-lg-4">
 <label for="email" class="screen-reader-text">E-post*</label>
 <input id="email" name="email" type="text" value="" placeholder="E-post*"
 size="30" aria-required="true">
 </p>
 }}}

 I've tested this on two running WordPress-sites and one I created in
 localhost just to test this issue.

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


More information about the wp-trac mailing list