From: Johannes Gijsbers Date: Sun, 7 Nov 2004 19:55:18 +0000 (+0000) Subject: Patch #1062033 / bug #1027771: clarify what happens when calling X-Git-Tag: v2.4c1~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4de9374b0e8fc3ddae4b2069cdfbdd9950d95599;p=thirdparty%2FPython%2Fcpython.git Patch #1062033 / bug #1027771: clarify what happens when calling insertBefore() with refChild=None. --- diff --git a/Doc/lib/xmldom.tex b/Doc/lib/xmldom.tex index e41d56c6bd7a..317febb3247e 100644 --- a/Doc/lib/xmldom.tex +++ b/Doc/lib/xmldom.tex @@ -340,7 +340,9 @@ returning \var{newChild}. \begin{methoddesc}[Node]{insertBefore}{newChild, refChild} Insert a new child node before an existing child. It must be the case that \var{refChild} is a child of this node; if not, -\exception{ValueError} is raised. \var{newChild} is returned. +\exception{ValueError} is raised. \var{newChild} is returned. If +\var{refChild} is \code{None}, it inserts \var{newChild} at the end of +the children's list. \end{methoddesc} \begin{methoddesc}[Node]{removeChild}{oldChild}