#47766 closed defect (bug) (invalid)
Duplicate label in default WordPress comment field
| Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.