cpython/Lib/html
Miss Islington (bot) 7317e0bbb7
[3.10] gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) (GH-137774) (GH-139660)
"] ]>" and "]] >" no longer end the CDATA section.

Make CDATA section parsing  context depending.
Add private method HTMLParser._set_support_cdata() to change the context.
If called with True, "<[CDATA[" starts a CDATA section which ends with "]]>".
If called with False, "<[CDATA[" starts a bogus comments which ends with ">".
(cherry picked from commit 0cbbfc4621)
(cherry picked from commit dcf24768c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-10-07 14:12:23 +02:00
..
__init__.py gh-100210: Correct the comment link for unescaping HTML (GH-100212) 2023-02-19 02:41:53 -08:00
entities.py Add source for character mappings (GH-92014) (#92389) 2022-05-06 12:58:16 +02:00
parser.py [3.10] gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) (GH-137774) (GH-139660) 2025-10-07 14:12:23 +02:00