Home | History | Annotate | Download | only in test

Lines Matching refs:elem

70         elem = root.childNodes[0]
72 root.insertBefore(nelem, elem)
77 and root.childNodes[1] is elem
78 and root.childNodes.item(1) is elem
80 and root.lastChild is elem
87 and root.childNodes[1] is elem
88 and root.childNodes.item(1) is elem
92 and nelem.previousSibling is elem
167 elem = dom.createElement('element')
171 dom.appendChild(elem)
173 elem)
175 elem)
177 nodemap = elem.attributes
183 elem.appendChild(text)
188 elem = dom.createElement('element')
189 attrs = elem.attributes
194 self.confirm(a.ownerElement is elem,
200 elem.unlink()
459 elem = dom.createElement(u'elem')
460 elem.appendChild(dom.createTextNode(u'TEXT'))
461 elem.appendChild(dom.createTextNode(u'TEXT'))
462 dom.appendChild(elem)
465 decl + '<elem>\n\tTEXT\n\tTEXT\n</elem>\n')
501 elem = doc.createElement("extra")
503 self.assertRaises(xml.dom.HierarchyRequestErr, doc.appendChild, elem)
504 elem.unlink()
1111 elem = doc.documentElement
1112 attrmap = elem.attributes
1113 attr = elem.attributes['a']
1123 and elem.getAttributeNode("a") is None
1124 and elem.getAttributeNode("b").isSameNode(attr)
1127 and attr.ownerElement.isSameNode(elem))
1137 and elem.getAttributeNode("a") is None
1138 and elem.getAttributeNode("b") is None
1139 and elem.getAttributeNode("c").isSameNode(attr)
1140 and elem.getAttributeNodeNS(
1153 and elem.getAttributeNode("a") is None
1154 and elem.getAttributeNode("b") is None
1155 and elem.getAttributeNode("c") is None
1156 and elem.getAttributeNodeNS(
1158 and elem.getAttributeNode("p:d").isSameNode(attr)
1159 and elem.getAttributeNodeNS(
1172 and elem.getAttributeNode("a") is None
1173 and elem.getAttributeNode("b") is None
1174 and elem.getAttributeNode("c") is None
1175 and elem.getAttributeNode("p:d") is None
1176 and elem.getAttributeNodeNS(
1178 and elem.getAttributeNode("e").isSameNode(attr)
1188 elem = doc.documentElement
1191 elem = doc.renameNode(elem, xml.dom.EMPTY_NAMESPACE, "a")
1192 self.confirm(elem.tagName == "a"
1193 and elem.nodeName == "a"
1194 and elem.localName is None
1195 and elem.namespaceURI == xml.dom.EMPTY_NAMESPACE
1196 and elem.prefix is None
1197 and elem
1200 elem = doc.renameNode(elem, "http://xml.python.org/ns", "b")
1201 self.confirm(elem.tagName == "b"
1202 and elem.nodeName == "b"
1203 and elem.localName == "b"
1204 and elem.namespaceURI == "http://xml.python.org/ns"
1205 and elem.prefix is None
1206 and elem.ownerDocument.isSameNode(doc))
1209 elem = doc.renameNode(elem, "http://xml.python.org/ns2", "p:c")
1210 self.confirm(elem.tagName == "p:c"
1211 and elem.nodeName == "p:c"
1212 and elem.localName == "c"
1213 and elem.namespaceURI == "http://xml.python.org/ns2"
1214 and elem.prefix == "p"
1215 and elem.ownerDocument.isSameNode(doc))
1218 elem = doc.renameNode(elem, xml.dom.EMPTY_NAMESPACE, "d")
1219 self.confirm(elem.tagName == "d"
1220 and elem.nodeName == "d"
1221 and elem.localName is None
1222 and elem.namespaceURI == xml.dom.EMPTY_NAMESPACE
1223 and elem.prefix is None
1224 and elem.ownerDocument.isSameNode(doc))
1226 self.checkRenameNodeSharedConstraints(doc, elem)
1241 elem = doc.documentElement
1242 text = elem.childNodes[0]
1246 elem.appendChild(doc.createTextNode("b"))
1248 elem.insertBefore(doc.createCDATASection("c"), text)
1253 elem.appendChild(splitter)
1255 elem.appendChild(text2)
1260 elem.replaceChild(x, splitter)
1266 elem.replaceChild(x, splitter)
1271 elem.removeChild(splitter)
1277 elem = doc.documentElement
1278 e = elem.firstChild
1279 self.confirm(e.parentNode is elem, "Before replaceChild()")
1281 elem.replaceChild(e, e)
1282 self.confirm(e.parentNode is elem, "After replaceChild()")
1287 elem = doc.documentElement
1288 text1 = elem.firstChild
1289 text2 = elem.lastChild
1291 elem.insertBefore(doc.createTextNode("b"), splitter)
1292 elem.insertBefore(doc.createCDATASection("c"), text1)
1293 return doc, elem, text1, splitter, text2
1295 doc, elem, text1, splitter, text2 = setup()
1299 self.confirm(len(elem.childNodes) == 3)
1301 doc, elem, text1, splitter, text2 = setup()
1305 self.confirm(len(elem.childNodes) == 5)
1307 doc, elem, text1, splitter, text2 = setup()
1311 and len(elem.childNodes) == 2)
1331 elem = doc.documentElement
1336 t = elem.schemaType
1341 a = elem.getAttributeNode(name)