mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
#4508 Adding simple test and actually getting the event to dispatch
This commit is contained in:
parent
5938a4c0f5
commit
0bd717e470
3 changed files with 21 additions and 6 deletions
15
tests/html/test_textarea_input.html
Normal file
15
tests/html/test_textarea_input.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="textarea">
|
||||
</textarea>
|
||||
</body>
|
||||
<script>
|
||||
var area = document.getElementById('textarea');
|
||||
area.addEventListener('input', function() {
|
||||
alert('input detected');
|
||||
});
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue