summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-30 16:58:15 (GMT)
committerFred Drake <fdrake@acm.org>2001-11-30 16:58:15 (GMT)
commit89d63cc450c2805a05c2016eb1011fc0b31d800e (patch)
treeda22ca11b2d56d3bb6dec937c40ff70805ed22d7 /Doc
parentbd34b6bc3d18f968a985d745416aa0e54bdfce0c (diff)
downloadcpython-89d63cc450c2805a05c2016eb1011fc0b31d800e.zip
cpython-89d63cc450c2805a05c2016eb1011fc0b31d800e.tar.gz
cpython-89d63cc450c2805a05c2016eb1011fc0b31d800e.tar.bz2
Minor adjustments to markup for the getDOMImplementation() description.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/xmldom.tex23
1 files changed, 13 insertions, 10 deletions
diff --git a/Doc/lib/xmldom.tex b/Doc/lib/xmldom.tex
index 58b944d..b89769d 100644
--- a/Doc/lib/xmldom.tex
+++ b/Doc/lib/xmldom.tex
@@ -98,18 +98,21 @@ for the specific implementation (e.g. if that implementation supports
some customization).
\end{funcdesc}
-\begin{funcdesc}{getDOMImplementation}{name = None, features = ()}
+\begin{funcdesc}{getDOMImplementation}{\optional{name\optional{, features}}}
Return a suitable DOM implementation. The \var{name} is either
well-known, the module name of a DOM implementation, or
-\code{None}. If it is not \code{None}, imports the corresponding module and
-returns a \class{DOMImplementation} object if the import succeeds. If
-no name is given, and if the environment variable \envvar{PYTHON_DOM} is
-set, this variable is used to find the implementation.
-
-If name is not given, consider the available implementations to find
-one with the required feature set. If no implementation can be found,
-raise an \exception{ImportError}. The features list must be a sequence of
-(feature, version) pairs which are passed to hasFeature.
+\code{None}. If it is not \code{None}, imports the corresponding
+module and returns a \class{DOMImplementation} object if the import
+succeeds. If no name is given, and if the environment variable
+\envvar{PYTHON_DOM} is set, this variable is used to find the
+implementation.
+
+If name is not given, this examines the available implementations to
+find one with the required feature set. If no implementation can be
+found, raise an \exception{ImportError}. The features list must be a
+sequence of \code{(\var{feature}, \var{version})} pairs which are
+passed to the \method{hasFeature()} method on available
+\class{DOMImplementation} objects.
\end{funcdesc}