Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
a2fda0df
Kaydet (Commit)
a2fda0df
authored
Eki 07, 2000
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Record bugs found when comparing the module with DOM Core Level 2.
üst
8bf9e3b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
minidom.py
Lib/xml/dom/minidom.py
+4
-1
No files found.
Lib/xml/dom/minidom.py
Dosyayı görüntüle @
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