Patch #1062033 / bug #1027771: clarify what happens when calling
authorJohannes Gijsbers <jlg@dds.nl>
Sun, 7 Nov 2004 19:55:18 +0000 (19:55 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Sun, 7 Nov 2004 19:55:18 +0000 (19:55 +0000)
insertBefore() with refChild=None.

Doc/lib/xmldom.tex

index e41d56c6bd7a154d58f06b1984cf8be8176511d1..317febb3247eadddd4c7dec23e940919b82e8aa6 100644 (file)
@@ -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}