diff options
author | Leonard Richardson <leonardr@segfault.org> | 2013-05-31 09:51:21 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2013-05-31 09:51:21 -0400 |
commit | e76e977befcee041f203c539e0021e822c28a32e (patch) | |
tree | 9ed5073e9955dc0dca387ccd276d75ef643ec763 /bs4/testing.py | |
parent | 40d0fcd877e58f2862025f5a39a8ab0861e12b8b (diff) |
The html.parser treebuilder can now handle numeric attributes in
text when the hexidecimal name of the attribute starts with a
capital X.
Diffstat (limited to 'bs4/testing.py')
-rw-r--r-- | bs4/testing.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bs4/testing.py b/bs4/testing.py index d8ff6b7..23b26f1 100644 --- a/bs4/testing.py +++ b/bs4/testing.py @@ -228,12 +228,14 @@ class HTMLTreeBuilderSmokeTest(object): expect = u'<p id="pi\N{LATIN SMALL LETTER N WITH TILDE}ata"></p>' self.assertSoupEquals('<p id="piñata"></p>', expect) self.assertSoupEquals('<p id="piñata"></p>', expect) + self.assertSoupEquals('<p id="piñata"></p>', expect) self.assertSoupEquals('<p id="piñata"></p>', expect) def test_entities_in_text_converted_to_unicode(self): expect = u'<p>pi\N{LATIN SMALL LETTER N WITH TILDE}ata</p>' self.assertSoupEquals("<p>piñata</p>", expect) self.assertSoupEquals("<p>piñata</p>", expect) + self.assertSoupEquals("<p>piñata</p>", expect) self.assertSoupEquals("<p>piñata</p>", expect) def test_quot_entity_converted_to_quotation_mark(self): |