Commit ffd6221f authored by Johannes Gijsbers's avatar Johannes Gijsbers

Patch #1062033 / bug #1027771: clarify what happens when calling

insertBefore() with refChild=None.
parent a335cfd4
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment