diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-23 13:55:51 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-23 13:55:51 -0500 |
commit | 97b54c4bdbee0f109c444b50d8102ae8d7abb7c4 (patch) | |
tree | 8feb3c4387fa5dc67c810f76c9a831ebf523898d /bs4/builder/_htmlparser.py | |
parent | 328204928bd22ca9e8aeac0a3208645d9f82f264 (diff) | |
parent | deaeb40977719ea821a62f41d75e2c9f48559094 (diff) |
The namespace stuff seems to work, and it's definitely an improvement on the status quo, so in it goes.
Diffstat (limited to 'bs4/builder/_htmlparser.py')
-rw-r--r-- | bs4/builder/_htmlparser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bs4/builder/_htmlparser.py b/bs4/builder/_htmlparser.py index 62473cf..c307ff8 100644 --- a/bs4/builder/_htmlparser.py +++ b/bs4/builder/_htmlparser.py @@ -40,7 +40,8 @@ HTMLPARSER = 'html.parser' class BeautifulSoupHTMLParser(HTMLParser): def handle_starttag(self, name, attrs): - self.soup.handle_starttag(name, dict(attrs)) + # XXX namespace + self.soup.handle_starttag(name, None, None, dict(attrs)) def handle_endtag(self, name): self.soup.handle_endtag(name) |