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

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: refactored html fild and changed test to reference test 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 <style type="text/css">
zino 2016/09/28 17:07:14 Need <!DOCTYPE html>
2 #s {
3 min-width: 100px;
4 }
5 </style>
6
7 <title>Test for HTMLSelectElement.remove() on an Options object</title>
8
9 <select id="s">
zino 2016/09/28 17:07:14 We don't need id attributes here if they doesn't b
10 <option id="o" selected >hello</option>
11 </select>
12
13 <a id="a" herf="#">Remove option</a>
14
15 <script>
16 function load() {
zino 2016/09/28 17:07:14 This is unnecessary.
17 var removeLink = document.querySelector('a');
18 removeLink.addEventListener('click', () => {
19 document.querySelector('option').remove();
20 });
21 removeLink.click();
22
23 }
24 window.onload = load;
zino 2016/09/28 17:07:14 This is unnecessary.
25 </script>
26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698