gh-135661: Fix CDATA section parsing in HTMLParser by serhiy-storchaka · Pull Request #135665 · python/cpython (original) (raw)
"] ]>" and "]] >" no longer end the CDATA section.
- Add HTMLParser.support_cdata().
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
"] ]>" 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 0cbbfc4)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
"] ]>" 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 0cbbfc4)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request
"] ]>" 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 0cbbfc4)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
serhiy-storchaka added a commit that referenced this pull request
"] ]>" 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 0cbbfc4)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request
"] ]>" 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 0cbbfc4)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
serhiy-storchaka added a commit to miss-islington/cpython that referenced this pull request
"] ]>" 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 0cbbfc4)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request
"] ]>" 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 ">".
hugovk pushed a commit that referenced this pull request
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request
Yhg1s pushed a commit that referenced this pull request
"] ]>" 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 0cbbfc4)
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…onGH-135665) (pythonGH-137774)
"] ]>" 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 0cbbfc4) (cherry picked from commit dcf2476)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…onGH-135665) (pythonGH-137774)
"] ]>" 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 0cbbfc4) (cherry picked from commit dcf2476)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…onGH-135665) (pythonGH-137774)
"] ]>" 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 0cbbfc4) (cherry picked from commit dcf2476)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
ambv pushed a commit that referenced this pull request
"] ]>" 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 0cbbfc4) (cherry picked from commit dcf2476)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
ambv pushed a commit that referenced this pull request
"] ]>" 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 0cbbfc4) (cherry picked from commit dcf2476)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
ambv added a commit that referenced this pull request
"] ]>" 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 0cbbfc4) (cherry picked from commit dcf2476)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com Co-authored-by: Łukasz Langa lukasz@langa.pl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})