filepond icon indicating copy to clipboard operation
filepond copied to clipboard

WCAG Validation error for fieldset without legend

Open webjohan opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Have you updated FilePond and its plugins?

  • [X] I have updated FilePond and its plugins

Describe the bug

WCAG validator tool gives error for use of fieldset-element without legend.

After adding a file for upload:

fieldset needs legend to be valid. can this filepond--data element be a div instead?

Reproduction

go to: https://pqina.nl/filepond/#examples

using wcag validator tool bookmarklet (https://squizlabs.github.io/HTML_CodeSniffer/) to validate page

Tool will report 11 errors but error number 2 refers to this: "Fieldset does not contain a legend element. All fieldsets should contain a legend element that describes a description of the field group."

Environment

- Device:all
- OS:all
- Broser:all

webjohan avatar Oct 19 '21 12:10 webjohan

good idea to switch that to a <div>, it only contains hidden fields, PR is welcome

rikschennink avatar Oct 21 '21 06:10 rikschennink