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
ce88db02
Commit
ce88db02
authored
Sep 15, 2000
by
Paul Prescod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug that disallowed processing instructions before and after
document element.
parent
89990533
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Lib/xml/dom/minidom.py
Lib/xml/dom/minidom.py
+5
-4
No files found.
Lib/xml/dom/minidom.py
View file @
ce88db02
...
...
@@ -396,10 +396,11 @@ class Document( Node ):
self
.
nodeValue
=
None
def
appendChild
(
self
,
node
):
if
node
.
nodeType
==
Node
.
ELEMENT_NODE
and
self
.
documentElement
:
raise
TypeError
,
"Two document elements disallowed"
else
:
self
.
documentElement
=
node
if
node
.
nodeType
==
Node
.
ELEMENT_NODE
:
if
self
.
documentElement
:
raise
TypeError
,
"Two document elements disallowed"
else
:
self
.
documentElement
=
node
Node
.
appendChild
(
self
,
node
)
return
node
...
...
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