[issue41989] htmlparser unclosed script tag causes data loss

2020-10-11 Thread Waylan Limberg
Change by Waylan Limberg : -- keywords: +patch pull_requests: +21635 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22658 ___ Python tracker <https://bugs.python.org/issu

[issue41989] htmlparser unclosed script tag causes data loss

2020-10-09 Thread Waylan Limberg
New submission from Waylan Limberg : When the `close` method of the HtmlParser is called, any cached text data is generally flushed and passed to a `data` event; except when in `data_mode`. Specifically, if an unclosed `script` or `style` tag has been encountered, a call to `close` does not