Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#47766 closed defect (bug) (invalid)

Duplicate label in default WordPress comment field

Reported by: samvimes's profile samvimes Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Comments Keywords:
Focuses: accessibility Cc:

Description

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.

Change History (3)

#1 @samvimes
5 years ago

  • Severity changed from minor to normal

#2 @samvimes
5 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#3 @SergeyBiryukov
5 years ago

  • Component changed from General to Comments
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.