8000 Genshi itself uses the prefixes argument of the NamespaceFlattener fi… · awesome-python/html5lib-python@160258e · GitHub
[go: up one dir, main page]

Skip to content < 8000 link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog.47de85e2c17af43cefd5.module.css" />

Commit 160258e

Browse files
committed
Genshi itself uses the prefixes argument of the NamespaceFlattener filter, so now we're also using it.
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40794
1 parent 670e434 commit 160258e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/treewalkers/genshistream.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ def __iter__(self):
1111
depth = 0
1212
ignore_until = None
1313
previous = None
14-
for event in NamespaceFlattener()(self.tree):
14+
for event in NamespaceFlattener(prefixes={
15+
'http://www.w3.org/1999/xhtml': ''
16+
})(self.tree):
1517
if previous is not None:
1618
if previous[0] == START:
1719
depth += 1

0 commit comments

Comments
 (0)
0