Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <title>Test for HTMLSelectElement.remove() on an Options object</title> | |
|
tkent
2016/09/28 23:13:26
Please add <!DOCTYPE html>
| |
| 2 | |
| 3 <style type="text/css"> | |
| 4 select { | |
|
tkent
2016/09/28 23:13:26
nit: Do not indent the whole content of <style>.
i
| |
| 5 min-width: 100px; | |
| 6 } | |
| 7 </style> | |
| 8 | |
| 9 <select> | |
| 10 <option selected >hello</option> | |
|
tkent
2016/09/28 23:13:26
A space after "selected" is unnecessary.
| |
| 11 </select> | |
| 12 | |
| 13 <a herf="#">Remove option</a> | |
| 14 | |
| 15 <script> | |
| 16 window.addEventListener('load', function() { | |
| 17 var removeLink = document.querySelector('a'); | |
| 18 removeLink.addEventListener('click', () => { | |
| 19 document.querySelector('option').remove(); | |
| 20 }); | |
| 21 removeLink.click(); | |
|
tkent
2016/09/28 23:13:26
I don't think we need to click the <a>. Why don't
| |
| 22 }); | |
| 23 </script> | |
| 24 | |
|
tkent
2016/09/28 23:13:26
This line is unnecessary.
| |
| OLD | NEW |