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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/rendering/bindings/the-select-element-0/option-label.html

Issue 1157863007: W3C Test: import web-platform-tests/html/rendering (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Re-run update-w3c-deps Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <title>Option labels</title>
3 <link rel="match" href="option-label-ref.html">
4 <select size=12></select>
5 <script>
6 var select = document.getElementsByTagName("select")[0], option;
7
8 option = document.createElement("option");
9 select.appendChild(option);
10
11 option = document.createElement("option");
12 option.setAttribute("label", "")
13 select.appendChild(option);
14
15 option = document.createElement("option");
16 option.setAttribute("label", "label")
17 select.appendChild(option);
18
19 option = document.createElement("option");
20 option.setAttributeNS("http://www.example.com/", "label", "label")
21 select.appendChild(option);
22
23 option = document.createElement("option");
24 option.appendChild(document.createTextNode(" child "));
25 select.appendChild(option);
26
27 option = document.createElement("option");
28 option.appendChild(document.createTextNode(" child "));
29 option.setAttribute("label", "")
30 select.appendChild(option);
31
32 option = document.createElement("option");
33 option.appendChild(document.createTextNode(" child "));
34 option.setAttribute("label", "label")
35 select.appendChild(option);
36
37 option = document.createElement("option");
38 option.appendChild(document.createTextNode(" child "));
39 option.setAttributeNS("http://www.example.com/", "label", "label")
40 select.appendChild(option);
41
42
43 option = document.createElement("option");
44 option.appendChild(document.createTextNode(" child "));
45 option.appendChild(document.createTextNode(" node "));
46 select.appendChild(option);
47
48 option = document.createElement("option");
49 option.appendChild(document.createTextNode(" child "));
50 option.appendChild(document.createTextNode(" node "));
51 option.setAttribute("label", "")
52 select.appendChild(option);
53
54
55 option = document.createElement("option");
56 option.appendChild(document.createTextNode(" child "));
57 option.appendChild(document.createTextNode(" node "));
58 option.setAttribute("label", "label")
59 select.appendChild(option);
60
61 option = document.createElement("option");
62 option.appendChild(document.createTextNode(" child "));
63 option.appendChild(document.createTextNode(" node "));
64 option.setAttributeNS("http://www.example.com/", "label", "label")
65 select.appendChild(option);
66 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698