Skip to content

Choices renders HTML Invalid code #1016

@garciajordy

Description

@garciajordy

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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions