Lines Matching refs:child
90 "%s cannot be child of %s" % (repr(newChild), repr(self)))
122 "%s cannot be child of %s" % (repr(node), repr(self)))
138 "%s cannot be child of %s" % (repr(newChild), repr(self)))
181 for child in self.childNodes:
182 if child.nodeType == Node.TEXT_NODE:
183 if not child.data:
186 L[-1].nextSibling = child.nextSibling
187 if child.nextSibling:
188 child.nextSibling.previousSibling = child.previousSibling
189 child.unlink()
190 elif L and L[-1].nodeType == child.nodeType:
193 node.data = node.data + child.data
194 node.nextSibling = child.nextSibling
195 if child.nextSibling:
196 child.nextSibling.previousSibling = node
197 child.unlink()
199 L.append(child)
201 L.append(child)
202 if child.nodeType == Node.ELEMENT_NODE:
203 child.normalize()
266 for child in self.childNodes:
267 child.unlink()
280 defproperty(Node, "firstChild", doc="First child node, or None.")
281 defproperty(Node, "lastChild", doc="Last child node, or None.")
365 # Add the single child node that represents the value of the attr
434 for child in self.childNodes:
435 child.unlink()
612 "%s cannot be child of %s" % (repr(node), repr(self)))
1616 "%s cannot be child of %s" % (repr(node), repr(self)))
1760 # add child elements to stack for continued searching
1761 stack.extend([child for child in node.childNodes
1762 if child.nodeType in _nodeTypes_with_children])
1907 for child in node.childNodes:
1908 c = _clone_node(child, deep, newOwnerDocument)
1914 for child in node.childNodes:
1915 c = _clone_node(child, deep, newOwnerDocument)