(self)
| 271 | self._run_check('&#x', [('data', '&#x')], convert_charrefs=True) |
| 272 | |
| 273 | def test_bad_nesting(self): |
| 274 | # Strangely, this *is* supposed to test that overlapping |
| 275 | # elements are allowed. HTMLParser is more geared toward |
| 276 | # lexing the input that parsing the structure. |
| 277 | self._run_check("<a><b></a></b>", [ |
| 278 | ("starttag", "a", []), |
| 279 | ("starttag", "b", []), |
| 280 | ("endtag", "a"), |
| 281 | ("endtag", "b"), |
| 282 | ]) |
| 283 | |
| 284 | def test_bare_ampersands(self): |
| 285 | self._run_check("this text & contains & ampersands &", [ |
nothing calls this directly
no test coverage detected