Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
89d63cc4
Commit
89d63cc4
authored
Nov 30, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor adjustments to markup for the getDOMImplementation() description.
parent
bd34b6bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
Doc/lib/xmldom.tex
Doc/lib/xmldom.tex
+13
-10
No files found.
Doc/lib/xmldom.tex
View file @
89d63cc4
...
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment