Debian Codegraph @

closure-library/closure/goog/dom/forms_test_dom.html

raw
1 <!--
2 Copyright 2017 The Closure Library Authors. All Rights Reserved.
3
4 Use of this source code is governed by the Apache License, Version 2.0.
5 See the COPYING file for details.
6 -->
7 <div id="testdiv1">
8 </div>
9 <form action="https://foo.bar/baz" id="testform1" onsubmit="return false">
10 <!-- text input with one value -->
11 <input id="in1" name="in1" value="foo">
12 <!-- text inputs with two values -->
13 <input id="in2" name="in2" value="bar">
14 <input id="in2" name="in2" value="baaz">
15 <!-- empty text input -->
16 <input id="in3" name="in3" value="">
17 <!-- password -->
18 <input id="pass" name="pass" type="password" value="bar">
19 <!-- textarea -->
20 <textarea id="textarea1" name="textarea">foo bar baz</textarea>
21 <!-- select single -->
22 <select id="select1" name="select1">
23 <option selected="" value="1">
24 one
25 </option>
26 <option value="2">
27 two
28 </option>
29 </select>
30 <!-- select multiple -->
31 <select id="select2" multiple="true" name="select2">
32 <option selected="" value="a">
33 A
34 </option>
35 <option value="b">
36 B
37 </option>
38 <option selected="" value="c">
39 C
40 </option>
41 </select>
42 <!-- select no value -->
43 <select id="select3" name="select3">
44 <option>
45 </option>
46 <option value="1">
47 one
48 </option>
49 <option value="2">
50 two
51 </option>
52 </select>
53 <!-- checkboxes -->
54 <fieldset id="testfieldset1">
55 <legend id="testlegend1">
56 Checkboxes
57 </legend>
58 <input checked="" id="checkbox1" name="checkbox1" type="checkbox">
59 <input id="checkbox2" name="checkbox2" type="checkbox">
60 </input>
61 </input>
62 </fieldset>
63 <!-- radio buttons -->
64 <fieldset>
65 <legend>
66 Radio Buttons
67 </legend>
68 <input checked="" id="radio1" name="radio" type="radio" value="X">
69 <input id="radio2" name="radio" type="radio" value="Y">
70 </input>
71 </input>
72 </fieldset>
73 <fieldset>
74 <legend>
75 Radio Buttons
76 </legend>
77 <input id="radio3" name="radio2" type="radio" value="X">
78 <input checked="" id="radio4" name="radio2" type="radio" value="Y">
79 </input>
80 </input>
81 </fieldset>
82 <!-- button -->
83 <button id="button" name="button" onclick="testSetValueSelectMultiple()" type="button" value="button">
84 button
85 </button>
86 <!-- submit -->
87 <input formaction="https://foo.xyz/baz" id="submit" name="submit" type="submit" value="submitv">
88 <!-- reset -->
89 <input id="reset" name="reset" type="reset" value="reset">
90 <!-- submit -->
91 <button formaction="https://foo.xyz/baz" id="submitb" name="submit" value="submitb">
92 Submit
93 </button>
94 </input>
95 </input>
96 </input>
97 </input>
98 </input>
99 </input>
100 </input>
101 </form>
102 <form id="testform2">
103 <input name="file" type="file">
104 </input>
105 </form>
106 <form id="testform3">
107 <!-- text input -->
108 <input id="in4" name="in4">
109 <!-- textarea -->
110 <textarea id="textarea2" name="textarea"></textarea>
111 <!-- select single -->
112 <select id="select4" name="select1">
113 <option value="1">
114 one
115 </option>
116 <option value="2">
117 two
118 </option>
119 </select>
120 <!-- select multiple -->
121 <select id="select5" multiple="true" name="select5">
122 <option value="a">
123 A
124 </option>
125 <option value="b">
126 B
127 </option>
128 <option value="c">
129 C
130 </option>
131 </select>
132 <!-- radio -->
133 <input id="radio3" name="radio3" type="radio" value="Z">
134 <!-- checkbox -->
135 <input id="checkbox2" name="checkbox2" type="checkbox">
136 <!-- select multiple no value -->
137 <select id="select6" multiple="true" name="select6">
138 <option value="a">
139 A
140 </option>
141 <option value="b">
142 B
143 </option>
144 </select>
145 <!-- select with empty value -->
146 <select id="select7" name="select7">
147 <option value="">
148 Empty
149 </option>
150 <option value="a">
151 A
152 </option>
153 <option value="b">
154 B
155 </option>
156 </select>
157 </input>
158 </input>
159 </input>
160 </form>
161 <form id="testform4">
162 <embed>
163 </embed>
164 <embed type="foo/bar">
165 </embed>
166 <object>
167 </object>
168 </form>