woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.41k stars 10.76k forks source link

Accessibility: Missing autocomplete on form field #51906

Open vikrampm1 opened 1 month ago

vikrampm1 commented 1 month ago

Prerequisites (mark completed items with an [x]):

Issue Description:

This input field collects personal details but does not have a defined autocomplete attribute. Autocomplete attributes enable browsers to assist people in filling in forms for commonly asked personal information such as name, email address, physical address, phone, credit card details, etc. This is an important accessibility feature that benefits all users.

Image

Component or Page:

Page: Product Single (Simple)

Name affected element:

Submit review form fields, such as:

  1. Name
  2. Email

Relevant code snippets:

<input id=""author"" name=""author"" type=""text"" value="""" size=""30"" required="""">

<input id=""email"" name=""email"" type=""email"" value="""" size=""30"" required="""">

Recommended fix:

Add the relevant autocomplete attribute to the fields. For a list of supported autocomplete attributes, see: https://www.w3.org/TR/WCAG21/#input-purposes

shameemreza commented 1 week ago

Another similar report: 8844477-zen