Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html

Issue 2372913002: fixed <select> element isn't updated after its single option removing. (Closed)
Patch Set: changed script activation point Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698