guillaumepotier / Parsley.js

Validate your forms, frontend, without writing a single line of javascript
http://parsleyjs.org
MIT License
9.05k stars 1.32k forks source link

Required option with only text is treated like having a value and passes validation #1344

Closed achilleus68 closed 3 years ago

achilleus68 commented 3 years ago

What kind of issue is this? (put 'x' between the square brackets)

When adding text to a required <option>, but not the value attribute, it is validated as if having a value

<option> Make your choice</option> passes validation <option /> does not pass validation

See this example https://codepen.io/djiest/pen/mdEomGB?editors=101, where the first