Debian Codegraph @

closure-library/closure/goog/dom/dom_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 <style type="text/css">
8 #styleTest1 {
9 width:120px;font-weight:bold;
10 }
11 </style>
12 <div>
13 abc <i>def</i> <s id="offsetParent1">g <b>h <i id="offsetTest1">ij</i> kl</b> mn</s> opq
14 </div>
15
16
17 <div id="testEl">
18 <span>Test Element</span>
19 </div>
20
21 <div><div><div id="testEl2"></div></div></div>
22
23 <!-- classbefore and classafter are for making sure that getElementsByClass
24 works when multiple classes are specified. -->
25 <div id="span-container">
26 <span id="span1" class="classbefore test1"></span>
27 <span id="span2" class="test1"></span>
28 <span id="span3" class="test2"></span>
29 <span id="span4" class="test3"></span>
30 <span id="span5" class="test1 classafter"></span>
31 </div>
32
33 <div class="mixedCaseClass"></div>
34
35 <p id="p1"></p>
36
37 <div id="styleTest1"></div>
38 <div id="styleTest2" style="width:100px;font-weight:bold"></div>
39 <div id="styleTest3"></div>
40
41 <!-- Paragraph to test element child and sibling -->
42 <p id="p2">
43 <!-- Comment -->
44 a
45 <b id="b1">c</b>
46 d
47 <!-- Comment -->
48 e
49 <b id="b2">f</b>
50 g
51 <!-- Comment -->
52 </p>
53
54 <table id="testTable1">
55 <tr>
56 <td>&nbsp;
57 </tr>
58 </table>
59
60 <iframe name="frame" src="testdata/dom_test_iframe_content.html"></iframe>
61
62 <p id="order-test"></p>
63
64 <div id="testAncestorDiv" class="ancestorClassA testAncestor">
65 <p id="testAncestorP" class="ancestorClassB testAncestor">
66 <b id="nestedElement">ancestorTest</b>
67 </p>
68 </div>
69
70 <div id="noTabIndex">Test</div>
71 <div id="tabIndexNegative2" tabindex="-2">Test</div>
72 <div id="tabIndexNegative1" tabindex="-1">Test</div>
73 <div id="tabIndex0" tabindex="0">Test</div>
74 <div id="tabIndex1" tabindex="1">Test</div>
75 <div id="tabIndex2" tabindex="2">Test</div>
76
77 <form>
78 <a href="testUrl" id="noTabIndexAnchor">Test</a>
79 <input id="noTabIndexInput">
80 <textarea id="noTabIndexTextArea">Test</textarea>
81 <select id="noTabIndexSelect"><option>Test</option></select>
82 <button id="noTabIndexButton">Test</button>
83 <button id="negTabIndexButton" tabindex="-1">Test</button>
84 <button id="zeroTabIndexButton" tabindex="0">Test</button>
85 <button id="posTabIndexButton" tabindex="1">Test</button>
86 <button id="disabledNoTabIndexButton" disabled>Test</button>
87 <button id="disabledNegTabIndexButton" disabled tabindex="-1">Test</button>
88 <button id="disabledZeroTabIndexButton" disabled tabindex="0">Test</button>
89 <button id="disabledPosTabIndexButton" disabled tabindex="1">Test</button>
90 </form>
91
92 <div id="toReplace">Replace Test</div>
93
94 <iframe id="iframe"><body></body></iframe>
95
96 <div id="myIframeDiv1" style="height:42px;font-size:1px;line-height:0;">hello world</div>
97 <div id="myIframeDiv2" style="height:23px;font-size:1px;line-height:0;">hello world</div>
98
99 <iframe id="myIframe" style="width:400px;height:200px;"></iframe>
100
101 <a id='link' href='foo.html'>Foo</a>
102
103 <svg id="testSvg" width="100" height="100" viewPort="0 0 100 100" version="1.0">
104 <g id="testG">
105 <rect id="testRect" x="10" y="10" width="50" height="50"/>
106 </g>
107 </svg>