8000 Fix etree treebuilder cloneNode to work with namespaces. · awesome-python/html5lib-python@19f48dd · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 19f48dd

Browse files
committed
Fix etree treebuilder cloneNode to work with namespaces.
1 parent 4393926 commit 19f48dd

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
def cloneNode(self):
134-
element = Element(self.name)
134+
element = Element(self.name, self.namespace)
135135
for name, value in self.attributes.iteritems():
136136
element.attributes[name] = value
137137
return element

0 commit comments

Comments
 (0)
0