gecko-dev/layout/base/tests/input-maxlength-valid-before-change.html
Thomas Wisniewski fe6139c017 Bug 932755 - Add support for input/textarea minLength and tooShort. r=mrbkap
--HG--
extra : rebase_source : 064985cbb241ef8705dcec28f60db9f4caf65ae4
2016-08-17 00:11:24 -04:00

16 lines
403 B
HTML

<!DOCTYPE HTML>
<html>
<!-- Test: input with maxlength is valid until the user edits it, even if it's too long -->
<head>
<style>
:valid { background-color:green; }
:invalid { background-color:red; }
* { background-color:white; }
</style>
</head>
<body onload="document.documentElement.className=''">
<input id="input" maxlength="2" value="foo">
</body>
</html>