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
05a19a50
Kaydet (Commit)
05a19a50
authored
Şub 23, 2008
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#1433694: minidom's .normalize() failed to set .nextSibling for last element.
Fix by Malte Helmert
üst
be0adfcf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
test_minidom.py
Lib/test/test_minidom.py
+8
-0
minidom.py
Lib/xml/dom/minidom.py
+2
-0
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/test/test_minidom.py
Dosyayı görüntüle @
05a19a50
...
...
@@ -806,6 +806,14 @@ def testNormalize():
"testNormalize -- single empty node removed"
)
doc
.
unlink
()
def
testBug1433694
():
doc
=
parseString
(
"<o><i/>t</o>"
)
node
=
doc
.
documentElement
node
.
childNodes
[
1
]
.
nodeValue
=
""
node
.
normalize
()
confirm
(
node
.
childNodes
[
-
1
]
.
nextSibling
==
None
,
"Final child's .nextSibling should be None"
)
def
testSiblings
():
doc
=
parseString
(
"<doc><?pi?>text?<elm/></doc>"
)
root
=
doc
.
documentElement
...
...
Lib/xml/dom/minidom.py
Dosyayı görüntüle @
05a19a50
...
...
@@ -203,6 +203,8 @@ class Node(xml.dom.Node):
L
.
append
(
child
)
if
child
.
nodeType
==
Node
.
ELEMENT_NODE
:
child
.
normalize
()
if
L
:
L
[
-
1
]
.
nextSibling
=
None
self
.
childNodes
[:]
=
L
def
cloneNode
(
self
,
deep
):
...
...
Misc/ACKS
Dosyayı görüntüle @
05a19a50
...
...
@@ -266,6 +266,7 @@ Shane Hathaway
Rycharde Hawkes
Jochen Hayek
Thomas Heller
Malte Helmert
Lance Finn Helsten
Jonathan Hendry
James Henstridge
...
...
Misc/NEWS
Dosyayı görüntüle @
05a19a50
...
...
@@ -15,6 +15,10 @@ Core and builtins
Library
-------
- Bug #1433694: minidom'
s
.
normalize
()
failed
to
set
.
nextSibling
for
last
child
element
.
Extension
Modules
-----------------
...
...
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