gecko-dev/layout/base/tests/input-maxlength-valid-befor...

16 строки
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>