summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2025-08-14 18:44:16 (GMT)
committerGitHub <noreply@github.com>2025-08-14 18:44:16 (GMT)
commita33596765b4d1add17e8e1ffc216c126325a14a3 (patch)
treea62a6a21254a56c52d5dce7ace1a10267488b003 /Python/pythonrun.c
parent46b2577b4244d1badb9475a6f3aaf6b90a237721 (diff)
downloadcpython-a33596765b4d1add17e8e1ffc216c126325a14a3.zip
cpython-a33596765b4d1add17e8e1ffc216c126325a14a3.tar.gz
cpython-a33596765b4d1add17e8e1ffc216c126325a14a3.tar.bz2
[3.13] gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) (GH-137773)
"] ]>" 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 0cbbfc462119b9107b373c24d2bda5a1271bed36) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions