Last active
December 14, 2015 23:58
-
-
Save peterjwest/5169077 to your computer and use it in GitHub Desktop.
Highlighting Chrome HTML5 validation bug (now fixed)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head><title>Novalidate bug test</title></head> | |
<style> | |
button { | |
border: 0 background: red; | |
} | |
button span { | |
background: green; | |
} | |
</style> | |
<body> | |
<form action="http://www.google.com"> | |
<input name="name" required="required"> | |
<button type="submit" novalidate="novalidate"> | |
Doesn't validate | |
<span>Does validate</span> | |
</button> | |
<button type="submit" novalidate="novalidate"> | |
Doesn't validate | |
</button> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment