mirror of
https://github.com/python/cpython.git
synced 2026-05-09 22:20:38 -04:00
7317e0bbb7
"] ]>" 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 commit0cbbfc4621) (cherry picked from commitdcf24768c9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>