Skip to content

Commit 0cb080a

Browse files
committed
Fallback to the default namespace, not no namespace.
1 parent 4e8e048 commit 0cb080a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html5lib/treebuilders/etree_lxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def insertRoot(self, token):
322322

323323
# Give the root element the right name
324324
name = token["name"]
325-
namespace = token.get("namespace", None)
325+
namespace = token.get("namespace", self.defaultNamespace)
326326
if namespace is None:
327327
etree_tag = name
328328
else:

0 commit comments

Comments
 (0)