Skip to content

Commit 0da140d

Browse files
Update html.parser.rst (GH-30678)
This PR for the documentation of the [html.parser](https://docs.python.org/3/library/html.parser.html) module will - fix a terminology mistake (‘start of a tag’ -> ‘start tag of an element’); - mention the parameter names of the `HTMLParser.handle_*` methods where missing. (cherry picked from commit 2945f5a) Co-authored-by: Géry Ogam <[email protected]>
1 parent d975a40 commit 0da140d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/html.parser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ implementations do nothing (except for :meth:`~HTMLParser.handle_startendtag`):
126126

127127
.. method:: HTMLParser.handle_starttag(tag, attrs)
128128

129-
This method is called to handle the start of a tag (e.g. ``<div id="main">``).
129+
This method is called to handle the start tag of an element (e.g. ``<div id="main">``).
130130

131131
The *tag* argument is the name of the tag converted to lower case. The *attrs*
132132
argument is a list of ``(name, value)`` pairs containing the attributes found

0 commit comments

Comments
 (0)