@@ -467,7 +467,7 @@ for each node type are:
467467.. method :: Node.insertBefore(newChild, refChild)
468468
469469 Insert a new child node before an existing child. It must be the case that
470- *refChild * is a child of this node; if not, :exc: `ValueError ` is raised.
470+ *refChild * is a child of this node; if not, :exc: `NotFoundErr ` is raised.
471471 *newChild * is returned. If *refChild * is ``None ``, it inserts *newChild * at the
472472 end of the children's list.
473473
@@ -479,15 +479,15 @@ for each node type are:
479479.. method :: Node.removeChild(oldChild)
480480
481481 Remove a child node. *oldChild * must be a child of this node; if not,
482- :exc: `ValueError ` is raised. *oldChild * is returned on success. If *oldChild *
482+ :exc: `NotFoundErr ` is raised. *oldChild * is returned on success. If *oldChild *
483483 will not be used further, its :meth: `~xml.dom.minidom.Node.unlink ` method
484484 should be called.
485485
486486
487487.. method :: Node.replaceChild(newChild, oldChild)
488488
489489 Replace an existing node with a new node. It must be the case that *oldChild *
490- is a child of this node; if not, :exc: `ValueError ` is raised.
490+ is a child of this node; if not, :exc: `NotFoundErr ` is raised.
491491
492492 Raise :exc: `WrongDocumentErr ` if *newChild * was created by another
493493 document, and :exc: `HierarchyRequestErr ` if it is this node itself or
@@ -860,8 +860,7 @@ of that class.
860860
861861.. method :: Element.removeAttribute(name)
862862
863- Remove an attribute by name. If there is no matching attribute, a
864- :exc: `NotFoundErr ` is raised.
863+ Remove an attribute by name.
865864
866865
867866.. method :: Element.removeAttributeNode(oldAttr)
@@ -872,8 +871,7 @@ of that class.
872871
873872.. method :: Element.removeAttributeNS(namespaceURI, localName)
874873
875- Remove an attribute by name. Note that it uses a localName, not a qname. No
876- exception is raised if there is no matching attribute.
874+ Remove an attribute by name. Note that it uses a localName, not a qname.
877875
878876
879877.. method :: Element.setAttribute(name, value)
0 commit comments