OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <body> | |
3 <script src="../../../resources/js-test.js"></script> | |
4 <label><input type=checkbox></label> | |
5 <script> | |
6 var label = document.querySelector('label'); | |
7 var checkbox = document.querySelector('input'); | |
8 checkbox.addEventListener('change', function() { | |
9 this.removeAttribute('type'); | |
10 }); | |
11 label.click(); | |
12 testPassed("No crash after changing type on change event."); | |
13 </script> | |
14 </body> | |
OLD | NEW |