Home | History | Annotate | Download | only in test

Lines Matching refs:elem

77         elem = root.childNodes[0]
79 root.insertBefore(nelem, elem)
84 and root.childNodes[1] is elem
85 and root.childNodes.item(1) is elem
87 and root.lastChild is elem
94 and root.childNodes[1] is elem
95 and root.childNodes.item(1) is elem
99 and nelem.previousSibling is elem
174 elem = dom.createElement('element')
178 dom.appendChild(elem)
180 elem)
182 elem)
184 nodemap = elem.attributes
190 elem.appendChild(text)
195 elem = dom.createElement('element')
196 attrs = elem.attributes
201 self.confirm(a.ownerElement is elem,
207 elem.unlink()
451 elem = dom.createElement(u'elem')
452 elem.appendChild(dom.createTextNode(u'TEXT'))
453 elem.appendChild(dom.createTextNode(u'TEXT'))
454 dom.appendChild(elem)
457 decl + '<elem>\n\tTEXT\n\tTEXT\n</elem>\n')
485 elem = doc.createElement("extra")
487 self.assertRaises(xml.dom.HierarchyRequestErr, doc.appendChild, elem)
488 elem.unlink()
1049 elem = doc.documentElement
1050 attrmap = elem.attributes
1051 attr = elem.attributes['a']
1061 and elem.getAttributeNode("a") is None
1062 and elem.getAttributeNode("b").isSameNode(attr)
1065 and attr.ownerElement.isSameNode(elem))
1075 and elem.getAttributeNode("a") is None
1076 and elem.getAttributeNode("b") is None
1077 and elem.getAttributeNode("c").isSameNode(attr)
1078 and elem.getAttributeNodeNS(
1091 and elem.getAttributeNode("a") is None
1092 and elem.getAttributeNode("b") is None
1093 and elem.getAttributeNode("c") is None
1094 and elem.getAttributeNodeNS(
1096 and elem.getAttributeNode("p:d").isSameNode(attr)
1097 and elem.getAttributeNodeNS(
1110 and elem.getAttributeNode("a") is None
1111 and elem.getAttributeNode("b") is None
1112 and elem.getAttributeNode("c") is None
1113 and elem.getAttributeNode("p:d") is None
1114 and elem.getAttributeNodeNS(
1116 and elem.getAttributeNode("e").isSameNode(attr)
1126 elem = doc.documentElement
1129 elem = doc.renameNode(elem, xml.dom.EMPTY_NAMESPACE, "a")
1130 self.confirm(elem.tagName == "a"
1131 and elem.nodeName == "a"
1132 and elem.localName is None
1133 and elem.namespaceURI == xml.dom.EMPTY_NAMESPACE
1134 and elem.prefix is None
1135 and elem.ownerDocument.isSameNode(doc))
1138 elem = doc.renameNode(elem, "http://xml.python.org/ns", "b")
1139 self.confirm(elem.tagName == "b"
1140 and elem.nodeName == "b"
1141 and elem.localName == "b"
1142 and elem.namespaceURI == "http://xml.python.org/ns"
1143 and elem.prefix is None
1144 and elem.ownerDocument.isSameNode(doc))
1147 elem = doc.renameNode(elem, "http://xml.python.org/ns2", "p:c")
1148 self.confirm(elem.tagName == "p:c"
1149 and elem.nodeName == "p:c"
1150 and elem.localName == "c"
1151 and elem.namespaceURI == "http://xml.python.org/ns2"
1152 and elem.prefix == "p"
1153 and elem.ownerDocument.isSameNode(doc))
1156 elem = doc.renameNode(elem, xml.dom.EMPTY_NAMESPACE, "d")
1157 self.confirm(elem
1158 and elem.nodeName == "d"
1159 and elem.localName is None
1160 and elem.namespaceURI == xml.dom.EMPTY_NAMESPACE
1161 and elem.prefix is None
1162 and elem.ownerDocument.isSameNode(doc))
1164 self.checkRenameNodeSharedConstraints(doc, elem)
1179 elem = doc.documentElement
1180 text = elem.childNodes[0]
1184 elem.appendChild(doc.createTextNode("b"))
1186 elem.insertBefore(doc.createCDATASection("c"), text)
1191 elem.appendChild(splitter)
1193 elem.appendChild(text2)
1198 elem.replaceChild(x, splitter)
1204 elem.replaceChild(x, splitter)
1209 elem.removeChild(splitter)
1215 elem = doc.documentElement
1216 e = elem.firstChild
1217 self.confirm(e.parentNode is elem, "Before replaceChild()")
1219 elem.replaceChild(e, e)
1220 self.confirm(e.parentNode is elem, "After replaceChild()")
1225 elem = doc.documentElement
1226 text1 = elem.firstChild
1227 text2 = elem.lastChild
1229 elem.insertBefore(doc.createTextNode("b"), splitter)
1230 elem.insertBefore(doc.createCDATASection("c"), text1)
1231 return doc, elem, text1, splitter, text2
1233 doc, elem, text1, splitter, text2 = setup()
1237 self.confirm(len(elem.childNodes) == 3)
1239 doc, elem, text1, splitter, text2 = setup()
1243 self.confirm(len(elem.childNodes) == 5)
1245 doc, elem, text1, splitter, text2 = setup()
1249 and len(elem.childNodes) == 2)
1269 elem = doc.documentElement
1274 t = elem.schemaType
1279 a = elem.getAttributeNode(name)