Choices
Choices copied to clipboard
Choices renders HTML Invalid code
Describe the bug
When rendering a simple input field with Choices.js it generates multiple HTML validation errors.
To Reproduce Steps to reproduce the behavior:
- Add a simple input field.
<input type='text' class='js-choice' /> - Add the provided JS code from the documentation.
const element = document.querySelector('.js-choice');
const choices = new Choices(element);
- Go to the browser and copy all the rendered HTML code and paste it on this website.
Screenshots

Desktop:
- OS: MacOS Monterey
- Browser: Chrome
- Choices.js: "^10.1.0"
Thanks for flagging this. Happy to review a PR for this!