Lines Matching refs:oldChild
130 def replaceChild(self, newChild, oldChild): argument
132 refChild = oldChild.nextSibling
133 self.removeChild(oldChild)
138 if newChild is oldChild:
143 index = self.childNodes.index(oldChild)
148 oldChild.parentNode = None
150 or oldChild.nodeType in _nodeTypes_with_children):
152 newChild.nextSibling = oldChild.nextSibling
153 newChild.previousSibling = oldChild.previousSibling
154 oldChild.nextSibling = None
155 oldChild.previousSibling = None
160 return oldChild
162 def removeChild(self, oldChild): argument
164 self.childNodes.remove(oldChild)
167 if oldChild.nextSibling is not None:
168 oldChild.nextSibling.previousSibling = oldChild.previousSibling
169 if oldChild.previousSibling is not None:
170 oldChild.previousSibling.nextSibling = oldChild.nextSibling
171 oldChild.nextSibling = oldChild.previousSibling = None
172 if oldChild.nodeType in _nodeTypes_with_children:
175 oldChild.parentNode = None
176 return oldChild
952 def removeChild(self, oldChild): argument
960 def replaceChild(self, newChild, oldChild): argument
1373 def removeChild(self, oldChild): argument
1377 def replaceChild(self, newChild, oldChild): argument
1602 def removeChild(self, oldChild): argument
1604 self.childNodes.remove(oldChild)
1607 oldChild.nextSibling = oldChild.previousSibling = None
1608 oldChild.parentNode = None
1609 if self.documentElement is oldChild:
1612 return oldChild