diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-27 21:59:20 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-27 21:59:20 -0500 |
commit | 660ec0cf6b64f2ab3e3aac108b8be9c5037f18a1 (patch) | |
tree | 6d716d6324cdce71ff75da688cef3e5fdf93ab7c /tests/test_lxml.py | |
parent | 86b82c02deb3dfaf8c3785f5535e4abf3acc0b65 (diff) |
Added test to verify that bug 403640 is fixed.
Diffstat (limited to 'tests/test_lxml.py')
-rw-r--r-- | tests/test_lxml.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_lxml.py b/tests/test_lxml.py index 7e83eff..36f0340 100644 --- a/tests/test_lxml.py +++ b/tests/test_lxml.py @@ -400,6 +400,10 @@ class TestLXMLBuilderInvalidMarkup(SoupTest): self.assertEquals(soup.a['bar'], '') self.assertEquals(soup.a.string, "baz") + def test_unquoted_attribute_value(self): + soup = self.soup('<a style={height:21px;}></a>') + self.assertEquals(soup.a['style'], '{height:21px;}') + def test_attribute_value_with_embedded_brackets(self): soup = self.soup('<a b="<a>">') self.assertEquals(soup.a['b'], '<a>') |