JedWatson / JedWatson/react-select

W3 validation errors

Open
#5,845 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/bug-unconfirmed
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

When validating the React-Select component I'm getting several errors from W3 validation:

Element [style](https://html.spec.whatwg.org/multipage/#the-style-element) not allowed as child of element [span](https://html.spec.whatwg.org/multipage/#the-span-element) in this context. (Suppressing further errors from this subtree.)

Element [div](https://html.spec.whatwg.org/multipage/#the-div-element) not allowed as child of element [span](https://html.spec.whatwg.org/multipage/#the-span-element) in this context. (Suppressing further errors from this subtree.)

I'm using a <span> as a container for the component, since using a <div>, which would be more semantically correct, throws even more errors.

Also:
CSS: label: Property label doesn't exist. at <input class="" style="label:input;color:inherit;background:0;opacity:1;width:100%;grid-area:1...

Thanks and please.

Using version 5.8.0.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the W3 validation errors with React-Select 5.8.0, using both span and div containers. Inspect the rendered markup and inline CSS reported by the validator; done means the reported HTML and CSS validation errors are resolved without introducing additional errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.