Lines Matching refs:document
3 var subTree = document.createElement('div');
5 document.body.appendChild(subTree);
8 var w = document.createTreeWalker(subTree, 0x01 | 0x08 | 0x10 | 0x20, all, true);
21 w.currentNode = document.documentElement;
23 shouldBe("w.currentNode", "document.documentElement");
24 w.currentNode = document.documentElement;
25 shouldBe("w.nextNode()", "document.documentElement.firstChild");
26 shouldBe("w.currentNode", "document.documentElement.firstChild");
27 w.currentNode = document.documentElement;
29 shouldBe("w.currentNode", "document.documentElement");
30 w.currentNode = document.documentElement;
31 shouldBe("w.firstChild()", "document.documentElement.firstChild");
32 shouldBe("w.currentNode", "document.documentElement.firstChild");
33 w.currentNode = document.documentElement;
34 shouldBe("w.lastChild()", "document.documentElement.lastChild");
35 shouldBe("w.currentNode", "document.documentElement.lastChild");
36 w.currentNode = document.documentElement;
38 shouldBe("w.currentNode", "document.documentElement");
39 w.currentNode = document.documentElement;
41 shouldBe("w.currentNode", "document.documentElement");
49 w.currentNode = document.body;
53 document.body.removeChild(subTree);