8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3820f9 commit 23926b1Copy full SHA for 23926b1
src/html5lib/treewalkers/soup.py
@@ -3,7 +3,7 @@
3
_ = gettext.gettext
4
5
5< 988A /code>
from BeautifulSoup import BeautifulSoup, Declaration, Comment, Tag
6
-
+from html5lib.constants import namespaces
7
import _base
8
9
class TreeWalker(_base.NonRecursiveTreeWalker):
@@ -44,8 +44,8 @@ def getNodeDetails(self, node):
44
return _base.TEXT, node
45
46
elif isinstance(node, Tag): # Element
47
- return _base.ELEMENT, node.name, \
48
- dict(node.attrs).items(), node.contents
+ return (_base.ELEMENT, namespaces["html"], node.name,
+ dict(node.attrs).items(), node.contents)
49
else:
50
return _base.UNKNOWN, node.__class__.__name__
51
0 commit comments