From 110881bd0fa593f639aa66764b9f0fbf4f39cb72 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Thu, 11 Oct 2012 14:21:45 -0400 Subject: Fix a bug in the lxml treebuilder which crashed when a tag included an attribute from the predefined xml: namespace. [bug=1065617] --- bs4/testing.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bs4/testing.py') diff --git a/bs4/testing.py b/bs4/testing.py index 0f052eb..1a92af4 100644 --- a/bs4/testing.py +++ b/bs4/testing.py @@ -501,6 +501,11 @@ class XMLTreeBuilderSmokeTest(object): soup = self.soup(markup) self.assertEqual(unicode(soup.foo), markup) + def test_namespaced_attributes_xml_namespace(self): + markup = 'bar' + soup = self.soup(markup) + self.assertEqual(unicode(soup.foo), markup) + class HTML5TreeBuilderSmokeTest(HTMLTreeBuilderSmokeTest): """Smoke test for a tree builder that supports HTML5.""" -- cgit v1.2.3