mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Implements FormControl for HTMLTextAreaElement
This commit is contained in:
parent
a3b3295d80
commit
7e0c39a82d
4 changed files with 62 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue