Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19f48dd

Browse files
committed
Fix etree treebuilder cloneNode to work with namespaces.
1 parent4393926 commit19f48dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/html5lib/treebuilders/etree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def insertText(self, data, insertBefore=None):
131131
self._element.text+=data
132132

133133
defcloneNode(self):
134-
element=Element(self.name)
134+
element=Element(self.name,self.namespace)
135135
forname,valueinself.attributes.iteritems():
136136
element.attributes[name]=value
137137
returnelement

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp