Choices icon indicating copy to clipboard operation
Choices copied to clipboard

Choices renders HTML Invalid code

Open garciajordy opened this issue 3 years ago • 1 comments

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:

  1. Add a simple input field. <input type='text' class='js-choice' />
  2. Add the provided JS code from the documentation.
  const element = document.querySelector('.js-choice');
  const choices = new Choices(element);
  1. Go to the browser and copy all the rendered HTML code and paste it on this website.

Screenshots image

Desktop:

  • OS: MacOS Monterey
  • Browser: Chrome
  • Choices.js: "^10.1.0"

garciajordy avatar Feb 24 '22 13:02 garciajordy

Thanks for flagging this. Happy to review a PR for this!

mtriff avatar Mar 13 '22 21:03 mtriff