Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"formnovalidate" does not work on Chrome

For some reason, Chrome seems to validate the required fields even when the submit button has got the attribute formnovalidate.

See http://jsfiddle.net/4LA9e/

<form>
  Required field: <input type="text" required />
  <input type="submit" formnovalidate value="do not validate" />
</form>

Clicking the "do not validate" button still validates the text field (tested on Chrome 30.0.1599.69 m).

Is there anything I am doing wrong? Is that a bug? Any workaround?

like image 590
Gyum Fox Avatar asked Nov 12 '22 20:11

Gyum Fox


1 Answers

As mentioned in my comment on the question, this was a regression introduced in version 30 (see this bug report), which was then fixed in Chrome 31.

like image 152
Gyum Fox Avatar answered Nov 14 '22 22:11

Gyum Fox