Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / traversal / tree-walker-001.html
blobe81478bb16cd81fbf7ee473a3134888b026447e9
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();
46 var root = document.getElementById('test');
47 var start = document.getElementById('A');
49 function testNodeFiter(n)
51 if (n.tagName == 'SPAN') return NodeFilter.FILTER_ACCEPT;
52 return NodeFilter.FILTER_SKIP;
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>