diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-13 19:40:29 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-13 19:40:29 -0500 |
commit | 09c9ca430e49449cc39cbeb7556230cb62df9b19 (patch) | |
tree | bf94e18ac8887851dcf84cb5140aa453a1b74316 /beautifulsoup/builder/lxml_builder.py | |
parent | 4191d5ff45015c6fac1db0bbdd7b3fcaff234424 (diff) |
Added tests for namespaced doctypes.
Diffstat (limited to 'beautifulsoup/builder/lxml_builder.py')
-rw-r--r-- | beautifulsoup/builder/lxml_builder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/beautifulsoup/builder/lxml_builder.py b/beautifulsoup/builder/lxml_builder.py index 86ac183..9ced9f0 100644 --- a/beautifulsoup/builder/lxml_builder.py +++ b/beautifulsoup/builder/lxml_builder.py @@ -32,8 +32,8 @@ class LXMLTreeBuilder(HTMLTreeBuilder): def doctype(self, name, pubid, system): self.soup.endData() - self.soup.handle_data(name) - self.soup.endData(Doctype) + doctype = Doctype.for_name_and_ids(name, pubid, system) + self.soup.object_was_parsed(doctype) def comment(self, content): "Handle comments as Comment objects." |