summaryrefslogtreecommitdiffstats
path: root/Doc/lib/xmldom.tex
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2004-11-07 19:55:18 (GMT)
committerJohannes Gijsbers <jlg@dds.nl>2004-11-07 19:55:18 (GMT)
commit4de9374b0e8fc3ddae4b2069cdfbdd9950d95599 (patch)
treeec1ca10c6d24ea9f63be7dff3437b1a0772ae302 /Doc/lib/xmldom.tex
parent4f18caa07b1db47b69175a8032a3749c6fbb23b3 (diff)
downloadcpython-4de9374b0e8fc3ddae4b2069cdfbdd9950d95599.zip
cpython-4de9374b0e8fc3ddae4b2069cdfbdd9950d95599.tar.gz
cpython-4de9374b0e8fc3ddae4b2069cdfbdd9950d95599.tar.bz2
Patch #1062033 / bug #1027771: clarify what happens when calling
insertBefore() with refChild=None.
Diffstat (limited to 'Doc/lib/xmldom.tex')
-rw-r--r--Doc/lib/xmldom.tex4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/lib/xmldom.tex b/Doc/lib/xmldom.tex
index e41d56c..317febb 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}