• Home
  • Raw
  • Download

Lines Matching refs:childNodes

87         elem = root.childNodes[0]
90 self.confirm(len(root.childNodes) == 2
91 and root.childNodes.length == 2
92 and root.childNodes[0] is nelem
93 and root.childNodes.item(0) is nelem
94 and root.childNodes[1] is elem
95 and root.childNodes.item(1) is elem
102 self.confirm(len(root.childNodes) == 3
103 and root.childNodes.length == 3
104 and root.childNodes[1] is elem
105 and root.childNodes.item(1) is elem
106 and root.childNodes[2] is nelem
107 and root.childNodes.item(2) is nelem
114 self.confirm(len(root.childNodes) == 4
115 and root.childNodes.length == 4
116 and root.childNodes[2] is nelem2
117 and root.childNodes.item(2) is nelem2
118 and root.childNodes[3] is nelem
119 and root.childNodes.item(3) is nelem
143 self.confirm(tuple(dom.documentElement.childNodes) ==
151 self.confirm(tuple(dom.documentElement.childNodes) ==
160 self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
161 self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
167 self.confirm(tuple(dom.documentElement.childNodes) ==
177 self.confirm(tuple(dom.documentElement.childNodes) == (c1, c2, c3),
224 self.confirm(not dom.childNodes[-1].childNodes)
229 self.assertTrue(dom.childNodes)
231 self.assertFalse(dom.childNodes)
235 self.assertTrue(dom.childNodes)
236 self.assertFalse(dom.childNodes)
531 dom.getElementsByTagName('B')[0].childNodes[0].toxml(),
532 dom2.getElementsByTagName('B')[0].childNodes[0].toxml())
543 and len(pi.childNodes) == 0
670 self.confirm(len(clone.childNodes) == 0
671 and clone.childNodes.length == 0
679 self.confirm(len(clone.childNodes) == 1
680 and clone.childNodes.length == 1
708 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
735 and len(clone.childNodes) == 0)
774 and len(clone.childNodes) == 0)
896 self.confirm(len(root.childNodes) == 2
897 and root.childNodes.length == 2,
900 self.confirm(len(root.childNodes) == 1
901 and root.childNodes.length == 1
911 self.confirm(len(root.childNodes) == 0
912 and root.childNodes.length == 0,
922 self.confirm(len(root.childNodes) == 3
923 and root.childNodes.length == 3,
926 self.confirm(len(root.childNodes) == 2
927 and root.childNodes.length == 2
942 self.confirm(len(root.childNodes) == 2
943 and root.childNodes.length == 2,
946 self.confirm(len(root.childNodes) == 1
947 and root.childNodes.length == 1
960 self.confirm(len(root.childNodes) == 2
961 and root.childNodes.length == 2,
964 self.confirm(len(root.childNodes) == 1
965 and root.childNodes.length == 1
979 self.confirm(len(root.childNodes) == 3
980 and root.childNodes.length == 3,
983 self.confirm(len(root.childNodes) == 2
984 and root.childNodes.length == 2
1001 self.confirm(len(root.childNodes) == 5
1002 and root.childNodes.length == 5,
1005 self.confirm(len(root.childNodes) == 1
1006 and root.childNodes.length == 1
1033 root.childNodes[0].appendChild(doc.createTextNode(""))
1034 root.childNodes[0].appendChild(doc.createTextNode("x"))
1035 root.childNodes[1].childNodes[0].appendChild(doc.createTextNode("x2"))
1036 root.childNodes[1].appendChild(doc.createTextNode("x3"))
1038 self.confirm(len(root.childNodes) == 3
1039 and root.childNodes.length == 3
1040 and len(root.childNodes[0].childNodes) == 4
1041 and root.childNodes[0].childNodes.length == 4
1042 and len(root.childNodes[1].childNodes) == 3
1043 and root.childNodes[1].childNodes.length == 3
1044 and len(root.childNodes[1].childNodes[0].childNodes) == 2
1045 and root.childNodes[1].childNodes[0].childNodes.length == 2
1048 self.confirm(len(root.childNodes) == 2
1049 and root.childNodes.length == 2
1050 and len(root.childNodes[0].childNodes) == 2
1051 and root.childNodes[0].childNodes.length == 2
1052 and len(root.childNodes[1].childNodes) == 2
1053 and root.childNodes[1].childNodes.length == 2
1054 and len(root.childNodes[1].childNodes[0].childNodes) == 1
1055 and root.childNodes[1].childNodes[0].childNodes.length == 1
1057 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
1058 and root.childNodes[1].childNodes[0].childNodes[0].data == "t2x2"
1059 and root.childNodes[1].childNodes[1].data == "t3x3"
1061 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
1062 and root.childNodes[0].childNodes[1].previousSibling
1063 is root.childNodes[0].childNodes[0]
1064 and root.childNodes[0].childNodes[0].previousSibling is None
1065 and root.childNodes[0].childNodes[0].nextSibling
1066 is root.childNodes[0].childNodes[1]
1067 and root.childNodes[1].childNodes[1].nextSibling is None
1068 and root.childNodes[1].childNodes[1].previousSibling
1069 is root.childNodes[1].childNodes[0]
1070 and root.childNodes[1].childNodes[0].previousSibling is None
1071 and root.childNodes[1].childNodes[0].nextSibling
1072 is root.childNodes[1].childNodes[1]
1079 text = doc.documentElement.childNodes[0]
1088 node.childNodes[1].nodeValue = ""
1090 self.confirm(node.childNodes[-1].nextSibling is None,
1096 (pi, text, elm) = root.childNodes
1111 elm1 = root.childNodes[0]
1112 (elm2a, elm2b) = elm1.childNodes
1113 elm3 = elm2b.childNodes[0]
1124 children = doc.childNodes
1128 and docelem.childNodes.item(0) is docelem.childNodes[0]
1129 and docelem.childNodes.item(1) is docelem.childNodes[1]
1130 and docelem.childNodes.item(0).childNodes.item(0) is None,
1343 text = elem.childNodes[0]
1400 self.confirm(len(elem.childNodes) == 3)
1406 self.confirm(len(elem.childNodes) == 5)
1412 and len(elem.childNodes) == 2)
1555 self.assertEqual(len(n1.childNodes), len(n2.childNodes))
1584 for i in range(len(n1.childNodes)):
1585 stack.append((n1.childNodes[i], n2.childNodes[i]))
1619 num_children_before = len(doc.childNodes)
1620 doc.removeChild(doc.childNodes[0])
1621 num_children_after = len(doc.childNodes)