Implements FormControl for HTMLTextAreaElement

This commit is contained in:
Matthew Rasmus 2014-12-07 11:04:39 -08:00
parent a3b3295d80
commit 7e0c39a82d
4 changed files with 62 additions and 8 deletions

View file

@ -9,12 +9,15 @@
<input type=text id=hi name=bye value="hi!">
<input type=text id=aloha name=empty value="">
<input type=text id=welcome name=reallyempty>
<textarea id=textarea>Hello
TextArea!</textarea>
<script>
// setTimeout because https://github.com/servo/servo/issues/3628
setTimeout(function(){
document.getElementById("hi").value=("bloop");
document.getElementById("aloha").value=("bloop");
document.getElementById("welcome").value=("bloop");
document.getElementById("textarea").value=("bloop");
setTimeout(function(){document.getElementById("foo").reset()},2000);
},2000)
</script>