Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support other RAWTEXT and PLAINTEXT elements in HTMLParser #137836

Closed
Assignees
serhiy-storchaka
Labels
stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errortype-securityA security issue
@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

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 toHTMLParser.CDATA_CONTENT_ELEMENTS (this can be done for separateHTMLParser instance), but it would be better to support them by default. "plaintext" needs a special code.

Linked PRs

Metadata

Metadata

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errortype-securityA security issue

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2026 Movatter.jp