From e76e977befcee041f203c539e0021e822c28a32e Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Fri, 31 May 2013 09:51:21 -0400 Subject: The html.parser treebuilder can now handle numeric attributes in text when the hexidecimal name of the attribute starts with a capital X. --- bs4/testing.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bs4/testing.py') 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'

' self.assertSoupEquals('

', expect) self.assertSoupEquals('

', expect) + self.assertSoupEquals('

', expect) self.assertSoupEquals('

', expect) def test_entities_in_text_converted_to_unicode(self): expect = u'

pi\N{LATIN SMALL LETTER N WITH TILDE}ata

' self.assertSoupEquals("

piñata

", expect) self.assertSoupEquals("

piñata

", expect) + self.assertSoupEquals("

piñata

", expect) self.assertSoupEquals("

piñata

", expect) def test_quot_entity_converted_to_quotation_mark(self): -- cgit v1.2.3