Skip to content

Instantly share code, notes, and snippets.

@peterjwest
Last active December 14, 2015 23:58
Show Gist options
  • Save peterjwest/5169077 to your computer and use it in GitHub Desktop.
Save peterjwest/5169077 to your computer and use it in GitHub Desktop.
Highlighting Chrome HTML5 validation bug (now fixed)
<!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