changeset: 73278:495b31a8b280 parent: 73276:5a2947376d2e parent: 73277:6107a84e3c44 user: Ezio Melotti date: Tue Nov 01 14:43:51 2011 +0200 description: #12008: merge with 3.2. diff -r 5a2947376d2e -r 495b31a8b280 Lib/test/test_htmlparser.py --- a/Lib/test/test_htmlparser.py Fri Oct 14 15:35:36 2011 +0200 +++ b/Lib/test/test_htmlparser.py Tue Nov 01 14:43:51 2011 +0200 @@ -377,6 +377,30 @@ ('endtag', 'html')], collector = self.collector) + def test_with_unquoted_attributes(self): + html = ("
" + "
" + " " + "- software-and-i" + "- library") + expected = [ + ('starttag', 'html', []), + ('starttag', 'body', [('bgcolor', 'd0ca90'), ('text', '181008')]), + ('starttag', 'table', + [('cellspacing', '0'), ('cellpadding', '1'), ('width', '100%')]), + ('starttag', 'tr', []), + ('starttag', 'td', [('align', 'left')]), + ('starttag', 'font', [('size', '-1')]), + ('data', '- '), ('starttag', 'a', [('href', '/rabota/')]), + ('starttag', 'span', [('class', 'en')]), ('data', ' software-and-i'), + ('endtag', 'span'), ('endtag', 'a'), + ('data', '- '), ('starttag', 'a', [('href', '/1/')]), + ('starttag', 'span', [('class', 'en')]), ('data', ' library'), + ('endtag', 'span'), ('endtag', 'a'), ('endtag', 'table') + ] + + self._run_check(html, expected, collector=self.collector) + def test_comma_between_attributes(self): self._run_check('
', [

AltStyle によって変換されたページ (->オリジナル) /