3 <!-- Test: textarea with minlength is invalid if the user edits and it's too short -->
6 :valid { background-color:green; }
7 :invalid { background-color:red; }
8 * { box-shadow:none; background-color:white; }
10 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
13 var textarea
= document
.getElementById('textarea');
14 textarea
.setSelectionRange(textarea
.value
.length
, textarea
.value
.length
)
17 textarea
.blur(); // to hide the caret
18 document
.documentElement
.className
='';
22 <body onload=
"runTest()">
23 <textarea id=
"textarea" minlength=
"4">fo
</textarea>