Lines Matching refs:childNodes
77 elem = root.childNodes[0]
80 self.confirm(len(root.childNodes) == 2
81 and root.childNodes.length == 2
82 and root.childNodes[0] is nelem
83 and root.childNodes.item(0) is nelem
84 and root.childNodes[1] is elem
85 and root.childNodes.item(1) is elem
92 self.confirm(len(root.childNodes) == 3
93 and root.childNodes.length == 3
94 and root.childNodes[1] is elem
95 and root.childNodes.item(1) is elem
96 and root.childNodes[2] is nelem
97 and root.childNodes.item(2) is nelem
104 self.confirm(len(root.childNodes) == 4
105 and root.childNodes.length == 4
106 and root.childNodes[2] is nelem2
107 and root.childNodes.item(2) is nelem2
108 and root.childNodes[3] is nelem
109 and root.childNodes.item(3) is nelem
133 self.confirm(tuple(dom.documentElement.childNodes) ==
141 self.confirm(tuple(dom.documentElement.childNodes) ==
150 self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
151 self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
157 self.confirm(tuple(dom.documentElement.childNodes) ==
167 self.confirm(tuple(dom.documentElement.childNodes) == (c1, c2, c3),
214 self.confirm(not dom.childNodes[-1].childNodes)
465 dom.getElementsByTagName('B')[0].childNodes[0].toxml(),
466 dom2.getElementsByTagName('B')[0].childNodes[0].toxml())
477 and len(pi.childNodes) == 0
544 self.confirm(len(clone.childNodes) == 0
545 and clone.childNodes.length == 0
553 self.confirm(len(clone.childNodes) == 1
554 and clone.childNodes.length == 1
582 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
609 and len(clone.childNodes) == 0)
648 and len(clone.childNodes) == 0)
719 self.confirm(len(root.childNodes) == 2
720 and root.childNodes.length == 2,
723 self.confirm(len(root.childNodes) == 1
724 and root.childNodes.length == 1
734 self.confirm(len(root.childNodes) == 0
735 and root.childNodes.length == 0,
745 self.confirm(len(root.childNodes) == 3
746 and root.childNodes.length == 3,
749 self.confirm(len(root.childNodes) == 2
750 and root.childNodes.length == 2
765 self.confirm(len(root.childNodes) == 2
766 and root.childNodes.length == 2,
769 self.confirm(len(root.childNodes) == 1
770 and root.childNodes.length == 1
783 self.confirm(len(root.childNodes) == 2
784 and root.childNodes.length == 2,
787 self.confirm(len(root.childNodes) == 1
788 and root.childNodes.length == 1
802 self.confirm(len(root.childNodes) == 3
803 and root.childNodes.length == 3,
806 self.confirm(len(root.childNodes) == 2
807 and root.childNodes.length == 2
824 self.confirm(len(root.childNodes) == 5
825 and root.childNodes.length == 5,
828 self.confirm(len(root.childNodes) == 1
829 and root.childNodes.length == 1
856 root.childNodes[0].appendChild(doc.createTextNode(""))
857 root.childNodes[0].appendChild(doc.createTextNode("x"))
858 root.childNodes[1].childNodes[0].appendChild(doc.createTextNode("x2"))
859 root.childNodes[1].appendChild(doc.createTextNode("x3"))
861 self.confirm(len(root.childNodes) == 3
862 and root.childNodes.length == 3
863 and len(root.childNodes[0].childNodes) == 4
864 and root.childNodes[0].childNodes.length == 4
865 and len(root.childNodes[1].childNodes) == 3
866 and root.childNodes[1].childNodes.length == 3
867 and len(root.childNodes[1].childNodes[0].childNodes) == 2
868 and root.childNodes[1].childNodes[0].childNodes.length == 2
871 self.confirm(len(root.childNodes) == 2
872 and root.childNodes.length == 2
873 and len(root.childNodes[0].childNodes) == 2
874 and root.childNodes[0].childNodes.length == 2
875 and len(root.childNodes[1].childNodes) == 2
876 and root.childNodes[1].childNodes.length == 2
877 and len(root.childNodes[1].childNodes[0].childNodes) == 1
878 and root.childNodes[1].childNodes[0].childNodes.length == 1
880 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
881 and root.childNodes[1].childNodes[0].childNodes[0].data == "t2x2"
882 and root.childNodes[1].childNodes[1].data == "t3x3"
884 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
885 and root.childNodes[0].childNodes[1].previousSibling
886 is root.childNodes[0].childNodes[0]
887 and root.childNodes[0].childNodes[0].previousSibling is None
888 and root.childNodes[0].childNodes[0].nextSibling
889 is root.childNodes[0].childNodes[1]
890 and root.childNodes[1].childNodes[1].nextSibling is None
891 and root.childNodes[1].childNodes[1].previousSibling
892 is root.childNodes[1].childNodes[0]
893 and root.childNodes[1].childNodes[0].previousSibling is None
894 and root.childNodes[1].childNodes[0].nextSibling
895 is root.childNodes[1].childNodes[1]
902 text = doc.documentElement.childNodes[0]
911 node.childNodes[1].nodeValue = ""
913 self.confirm(node.childNodes[-1].nextSibling is None,
919 (pi, text, elm) = root.childNodes
934 elm1 = root.childNodes[0]
935 (elm2a, elm2b) = elm1.childNodes
936 elm3 = elm2b.childNodes[0]
947 children = doc.childNodes
951 and docelem.childNodes.item(0) is docelem.childNodes[0]
952 and docelem.childNodes.item(1) is docelem.childNodes[1]
953 and docelem.childNodes.item(0).childNodes.item(0) is None,
973 (text1, elm1, text2) = root.childNodes
974 text3 = elm1.childNodes[0]
1180 text = elem.childNodes[0]
1237 self.confirm(len(elem.childNodes) == 3)
1243 self.confirm(len(elem.childNodes) == 5)
1249 and len(elem.childNodes) == 2)
1392 self.assertEqual(len(n1.childNodes), len(n2.childNodes))
1421 for i in range(len(n1.childNodes)):
1422 stack.append((n1.childNodes[i], n2.childNodes[i]))