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
a2fda0df
Commit
a2fda0df
authored
Oct 07, 2000
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Record bugs found when comparing the module with DOM Core Level 2.
parent
8bf9e3b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/xml/dom/minidom.py
Lib/xml/dom/minidom.py
+4
-1
No files found.
Lib/xml/dom/minidom.py
View file @
a2fda0df
...
...
@@ -250,7 +250,7 @@ class AttributeList:
del
self
.
_attrs
[
node
.
name
]
del
self
.
_attrsNS
[(
node
.
namespaceURI
,
node
.
localName
)]
class
Element
(
Node
):
class
Element
(
Node
):
nodeType
=
Node
.
ELEMENT_NODE
def
__init__
(
self
,
tagName
,
namespaceURI
=
""
,
prefix
=
""
,
...
...
@@ -287,6 +287,7 @@ class Element( Node ):
attr
=
Attr
(
qualifiedName
,
namespaceURI
,
localname
,
prefix
)
attr
.
__dict__
[
"value"
]
=
attr
.
__dict__
[
"nodeValue"
]
=
value
self
.
setAttributeNode
(
attr
)
# FIXME: return original node if something changed.
def
getAttributeNode
(
self
,
attrname
):
return
self
.
_attrs
.
get
(
attrname
)
...
...
@@ -300,6 +301,7 @@ class Element( Node ):
old
.
unlink
()
self
.
_attrs
[
attr
.
name
]
=
attr
self
.
_attrsNS
[(
attr
.
namespaceURI
,
attr
.
localName
)]
=
attr
# FIXME: return old value if something changed
def
removeAttribute
(
self
,
name
):
attr
=
self
.
_attrs
[
name
]
...
...
@@ -323,6 +325,7 @@ class Element( Node ):
def
__repr__
(
self
):
return
"<DOM Element: %s at %s>"
%
(
self
.
tagName
,
id
(
self
))
# undocumented
def
writexml
(
self
,
writer
):
writer
.
write
(
"<"
+
self
.
tagName
)
...
...
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