[Pointer Events WPT] Unskip imported/w3c/web-platform-tests/pointerevents/pointereven...
[WebKit-https.git] / LayoutTests / traversal / tree-walker-001.html
1 <html> 
2 <head>
3 <script src=traversal.js language="JavaScript" type="text/JavaScript" ></script>
4 <title>Traversal Test</title> 
5 </head> 
6 <body>
7 <div id="test">
8 <span id="A">
9     <span id="A.1">
10     </span>
11     <span id="A.2">
12     </span>
13     <span id="A.3">
14     </span>
15 </span>
16 <span id="B">
17     <span id="B.1">
18         <span id="B.1.1">
19         </span>
20     </span>
21 </span>
22 <span id="C">
23     <span id="C.1">
24         <span id="C.1.1">
25             <span id="C.1.1.1">
26             </span>
27             <span id="C.1.1.2">
28             </span>
29             <span id="C.1.1.3">
30             </span>
31         </span>
32         <span id="C.1.2">
33             <span id="C.2.1">
34             </span>
35         </span>
36     </span>
37 </span>
38 <span id="D">
39 </span>
40 </div>
41 <div style="font-family: Courier; font-size: 14; white-space: pre">
42 <script>
43 if (window.testRunner)
44     testRunner.dumpAsText();
45
46 var root = document.getElementById('test');
47 var start = document.getElementById('A');
48
49 function testNodeFiter(n)
50 {
51     if (n.tagName == 'SPAN') return NodeFilter.FILTER_ACCEPT;
52     return NodeFilter.FILTER_SKIP;
53 }
54
55 var tw = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, testNodeFiter, false);
56 document.write(dumpTreeWalker(tw, start));
57 </script>
58 </div>
59 </body>
60 </html>