Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / traversal / node-iterator-008.html
blob1c78e0405ba17515edd4e8f1a46298230d929205
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"></span><span id="B"></span><span id="C"><span id="D" marked="YES"></span><span id="E"></span><span id="F"></span></span><span id="G"></span><span id="H"></span><span id="I"></span>
9 </div>
10 <div style="font-family: Courier; font-size: 14;">
11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 var parent = document.getElementById('test');
16 //var root = document.getElementById('A');
17 var root = document;
19 function testNodeFiter(n)
21 if (n.getAttribute('marked') == 'YES') return NodeFilter.FILTER_ACCEPT;
22 return NodeFilter.FILTER_SKIP;
25 var it = document.createNodeIterator(root, NodeFilter.SHOW_ELEMENT, testNodeFiter, false);
26 var out = '';
27 while ((n = it.nextNode())) {
28 out += "<br>" + n.tagName + ": " + n.id;
30 document.write(out);
32 </script>
33 </div>
34 </body>
35 </html>