(self)
| 175 | ]) |
| 176 | |
| 177 | def test_malformatted_charref(self): |
| 178 | self._run_check("<p>&#bad;</p>", [ |
| 179 | ("starttag", "p", []), |
| 180 | ("data", "&#bad;"), |
| 181 | ("endtag", "p"), |
| 182 | ]) |
| 183 | # add the [] as a workaround to avoid buffering (see #20288) |
| 184 | self._run_check(["<div>&#bad;</div>"], [ |
| 185 | ("starttag", "div", []), |
| 186 | ("data", "&#bad;"), |
| 187 | ("endtag", "div"), |
| 188 | ]) |
| 189 | |
| 190 | def test_unclosed_entityref(self): |
| 191 | self._run_check('> <', [('entityref', 'gt'), ('data', ' '), ('entityref', 'lt')], |
nothing calls this directly
no test coverage detected