You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support other RAWTEXT and PLAINTEXT elements in HTMLParser #137836
HTMLParser initially only supported RAWTEXT elements "style" and "script". Then support of RCDATA elements "title" and "textarea" was added in #118350. But there are more RAWTEXT elements: "xmp", "iframe", "noembed", and "noframes".
"noscript" is also switches to the RAWTEXT mode if the scripting flag is enabled.
And the "plaintext" tag switches to the PLAINTEXT state from which there is no exit.
Support of other RAWTEXT elements can be enabled from the user code by adding them to HTMLParser.CDATA_CONTENT_ELEMENTS (this can be done for separate HTMLParser instance), but it would be better to support them by default. "plaintext" needs a special code.
changed the title [-]Support other RAWMODE and PLAINTEXT elements in HTMLParser[/-][+]Support other RAWTEXT and PLAINTEXT elements in HTMLParser[/+]on Aug 15, 2025
Activity
[-]Support other RAWMODE and PLAINTEXT elements in HTMLParser[/-][+]Support other RAWTEXT and PLAINTEXT elements in HTMLParser[/+]pythongh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLP…
pythongh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLP…
gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (G…
pythongh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLP…
4 remaining items
[3.12] pythongh-137836: Support more RAWTEXT and PLAINTEXT elements i…
[3.11] pythongh-137836: Support more RAWTEXT and PLAINTEXT elements i…
[3.10] pythongh-137836: Support more RAWTEXT and PLAINTEXT elements i…
[3.9] pythongh-137836: Support more RAWTEXT and PLAINTEXT elements in…
Fix the versionchanged directive for pythongh-137836
[3.13] Fix the versionchanged directive for gh-137836 (GH-140859)
[3.10] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTML…
[3.12] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTML…
[3.9] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLP…
[3.11] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTML…
[html.parser] Add `scripting` param for later patch releases
pythongh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLP…