aboutsummaryrefslogtreecommitdiff
path: root/contexts/data/lib/closure-library/closure/goog/dom/dom_quirks_test.html
blob: 523179b80fb86add696560e83b41ac3d5c0d6710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<html>
<!--
Copyright 2006 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<!--

 This is a copy of dom_test.html but without a doctype. Make sure these two
 are in sync.
-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Closure Unit Tests - goog.dom</title>
<script src="../base.js"></script>
<script>
  goog.require('goog.array');
  goog.require('goog.dom');
  goog.require('goog.testing.jsunit');
  goog.require('goog.userAgent');
</script>
<style type="text/css">
#styleTest1 {
  width:120px;font-weight:bold;
}
</style>
</head>
<body>
  <div>
    abc <i>def</i> <s id="offsetParent1">g <b>h <i id="offsetTest1">ij</i> kl</b> mn</s> opq
  </div>


  <div id="testEl">
    <span>Test Element</span>
  </div>

  <div><div><div id="testEl2"></div></div></div>

  <!-- classbefore and classafter are for making sure that getElementsByClass
       works when multiple classes are specified. -->
  <div id="span-container">
    <span id="span1" class="classbefore test1"></span>
    <span id="span2" class="test1"></span>
    <span id="span3" class="test2"></span>
    <span id="span4" class="test3"></span>
    <span id="span5" class="test1 classafter"></span>
  </div>

  <div class="mixedCaseClass"></div>

  <p id="p1"></p>

  <div id="styleTest1"></div>
  <div id="styleTest2" style="width:100px;font-weight:bold"></div>
  <div id="styleTest3"></div>

  <!-- Paragraph to test element child and sibling -->
  <p id="p2">
    <!-- Comment -->
    a
    <b id="b1">c</b>
    d
    <!-- Comment -->
    e
    <b id="b2">f</b>
    g
    <!-- Comment -->
  </p>

  <table id="testTable1">
    <tr>
      <td>&nbsp;
    </tr>
  </table>

  <iframe name="frame" src="tagname_test.html"></iframe>

  <p id="order-test"></p>

  <div id="testAncestorDiv" class="ancestorClassA testAncestor">
    <p id="testAncestorP" class="ancestorClassB testAncestor">
      <b id="nestedElement">ancestorTest</b>
    </p>
  </div>

  <div id="noTabIndex">Test</div>
  <div id="tabIndexNegative2" tabindex="-2">Test</div>
  <div id="tabIndexNegative1" tabindex="-1">Test</div>
  <div id="tabIndex0" tabindex="0">Test</div>
  <div id="tabIndex1" tabindex="1">Test</div>
  <div id="tabIndex2" tabindex="2">Test</div>

  <div id="toReplace">Replace Test</div>

  <iframe id="iframe"></iframe>

  <div id="myIframeDiv1" style="height:42px;font-size:1px;line-height:0;">hello world</div>
  <div id="myIframeDiv2" style="height:23px;font-size:1px;line-height:0;">hello world</div>

  <iframe id="myIframe" style="width:400px;height:200px;"></iframe>

  <a id='link' href='foo.html'>Foo</a>

<script src="dom_test.js"></script>
</body>
</html>