Skip to content

gh-118350: Add escapable-raw-text mode to html parser #121770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
test: include raw text and escapable raw text elements in cdata conte…
…nt test
  • Loading branch information
timonviola committed May 13, 2025
commit da868db7ced08fd3cf40a4e34f3021e1f191e872
4 changes: 3 additions & 1 deletion Lib/test/test_htmlparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ def test_cdata_content(self):
#'foo = </\nscript>',
#'foo = </ script>',
]
elements = ['script', 'style', 'SCRIPT', 'TEXTAREA', 'Script', 'Textarea']
tags = ['script', 'style', 'textarea', 'title']
# test the following 'casing' for each tag: script, SCRIPT, Script etc.
elements = [f(tag) for tag in tags for f in (str.lower, str.upper, str.capitalize)]
for content in contents:
for element in elements:
element_lower = element.lower()
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy