123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <!DOCTYPE html>
- <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.
- -->
- <!--
- When changing this, make sure that dom_quirks_test.html is kept in sync.
- -->
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta charset="UTF-8" />
- <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>
- </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>
- <form>
- <a href="testUrl" id="noTabIndexAnchor">Test</a>
- <input id="noTabIndexInput">
- <textarea id="noTabIndexTextArea">Test</textarea>
- <select id="noTabIndexSelect"><option>Test</option></select>
- <button id="noTabIndexButton">Test</button>
- <button id="negTabIndexButton" tabindex="-1">Test</button>
- <button id="zeroTabIndexButton" tabindex="0">Test</button>
- <button id="posTabIndexButton" tabindex="1">Test</button>
- <button id="disabledNoTabIndexButton" disabled>Test</button>
- <button id="disabledNegTabIndexButton" disabled tabindex="-1">Test</button>
- <button id="disabledZeroTabIndexButton" disabled tabindex="0">Test</button>
- <button id="disabledPosTabIndexButton" disabled tabindex="1">Test</button>
- </form>
- <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>
- <svg id="testSvg" width="100" height="100" viewPort="0 0 100 100" version="1.0">
- <g id="testG">
- <rect id="testRect" x="10" y="10" width="50" height="50"/>
- </g>
- </svg>
- <script src="dom_test.js"></script></body>
- </html>
|