Lines Matching refs:oldChild
129 def replaceChild(self, newChild, oldChild): argument
131 refChild = oldChild.nextSibling
132 self.removeChild(oldChild)
137 if newChild is oldChild:
142 index = self.childNodes.index(oldChild)
147 oldChild.parentNode = None
149 or oldChild.nodeType in _nodeTypes_with_children):
151 newChild.nextSibling = oldChild.nextSibling
152 newChild.previousSibling = oldChild.previousSibling
153 oldChild.nextSibling = None
154 oldChild.previousSibling = None
159 return oldChild
161 def removeChild(self, oldChild): argument
163 self.childNodes.remove(oldChild)
166 if oldChild.nextSibling is not None:
167 oldChild.nextSibling.previousSibling = oldChild.previousSibling
168 if oldChild.previousSibling is not None:
169 oldChild.previousSibling.nextSibling = oldChild.nextSibling
170 oldChild.nextSibling = oldChild.previousSibling = None
171 if oldChild.nodeType in _nodeTypes_with_children:
174 oldChild.parentNode = None
175 return oldChild
894 def removeChild(self, oldChild): argument
902 def replaceChild(self, newChild, oldChild): argument
1328 def removeChild(self, oldChild): argument
1332 def replaceChild(self, newChild, oldChild): argument
1555 def removeChild(self, oldChild): argument
1557 self.childNodes.remove(oldChild)
1560 oldChild.nextSibling = oldChild.previousSibling = None
1561 oldChild.parentNode = None
1562 if self.documentElement is oldChild:
1565 return oldChild