Lines Matching refs:node
59 def checkWholeText(self, node, s):
60 t = node.wholeText
115 , "testInsertBefore -- node properly placed in tree")
127 , "testInsertBefore -- node properly placed in tree")
140 , "testInsertBefore -- node properly placed in tree")
342 node = child.getAttributeNode("spam")
345 self.assertIs(node, child.removeAttributeNode(node))
496 node = el.setAttribute("abc", "def")
497 self.confirm(str(node) == repr(node))
668 , "clone of attribute node has proper attribute values")
670 "clone of attribute node correctly owned")
929 "testNormalize -- single empty node removed")
1103 node = doc.documentElement
1104 node.childNodes[1].nodeValue = ""
1105 node.normalize()
1106 self.confirm(node.childNodes[-1].nextSibling is None,
1224 def checkRenameNodeSharedConstraints(self, doc, node):
1226 self.assertRaises(xml.dom.NamespaceErr, doc.renameNode, node,
1229 self.assertRaises(xml.dom.WrongDocumentErr, doc2.renameNode, node,
1287 # Rename back to a simple non-NS node
1340 # Rename back to a simple non-NS node
1353 # We have to create a comment node explicitly since not all DOM
1357 node = doc.createComment("comment")
1358 self.assertRaises(xml.dom.NotSupportedErr, doc.renameNode, node,
1486 # replace the a1 node; the new node should *not* be an ID
1522 # replace the a1 node; the new node should *not* be an ID
1558 # replace the a1 node; the new node should *not* be an ID
1678 xml_str = '<?xml version="1.0" ?><root><node><![CDATA[</data>]]></node></root>'
1683 '\t<node><![CDATA[</data>]]></node>\n'
1687 xml_str = '<?xml version="1.0" ?><root><node><![CDATA[</data>]]></node></root>'
1689 self.checkWholeText(dom1.getElementsByTagName('node')[0].firstChild, '</data>')
1691 self.checkWholeText(dom2.getElementsByTagName('node')[0].firstChild, '</data>')