JenkinsDev/Validatinator

validation fails with exception when an input field is named "name"

Closed this issue · 0 comments

getFieldsValue will raise an exeption if e.g. a hidden field is named "name" and one field to be validated

this

163: if (fieldElement.form && fieldElement.form.name === form) {

will be false, because fieldElement.form.name will return the input "<input type=​"hidden" name=​"name" value>​"