Skip to content

Select markup includes an empty option element, which fails W3C validation #8085

Open
@syzygy333

Description

@syzygy333

Provide a general summary of the issue here

As stated in title, when using the component seen here

https://react-spectrum.adobe.com/react-aria/examples/status-select.html

the resultant markup includes a element whose first child is an empty element. This is an error according to the W3 validator (https://validator.w3.org/): Element option without attribute label must not be empty. 🤔 Expected Behavior? Component passes W3 validation 😯 Current Behavior Component fails W3 validation 💁 Possible Solution Empty element should be removed or given a valid "label" attribute 🔦 Context Pass W3 validation 🖥️ Steps to Reproduce Use component Test URL that contains component using W3 validator Get error "Element option without attribute label must not be empty" Version 1.7.1 (react-aria-components) What browsers are you seeing the problem on? Chrome If other, please specify. No response What operating system are you using? Mac 🧢 Your Company/Team No response 🕷 Tracking Issue No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions