Skip to content

Commit 428abe1

Browse files
Apply suggestions from code review
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
1 parent 08f4835 commit 428abe1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/library/html.parser.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ parsing text files formatted in HTML (HyperText Mark-up Language) and XHTML.
2424
automatically converted to the corresponding Unicode characters.
2525

2626
If *scripting* is false (the default), the content of the ``noscript``
27-
element is parsed normally; if it's true, it's parsed in RAWTEXT mode,
28-
like ``script``.
27+
element is parsed normally; if it's true, it's returned as is without
28+
being parsed.
2929

3030
An :class:`.HTMLParser` instance is fed HTML data and calls handler methods
3131
when start tags, end tags, text, comments, and other markup elements are

Lib/html/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __init__(self, *, convert_charrefs=True, scripting=False):
141141
142142
If *scripting* is false (the default), the content of the
143143
``noscript`` element is parsed normally; if it's true,
144-
it's parsed in RAWTEXT mode.
144+
it's returned as is without being parsed.
145145
"""
146146
super().__init__()
147147
self.convert_charrefs = convert_charrefs

0 commit comments

Comments
 (0)