]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update html.parser.rst (GH-30678)
authorGéry Ogam <gery.ogam@gmail.com>
Thu, 17 Feb 2022 12:20:40 +0000 (13:20 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Feb 2022 12:20:40 +0000 (04:20 -0800)
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.

Doc/library/html.parser.rst

index ac844a683bf7ac1b9cc9bdf873943647c8a3ee6d..03aff25ce6117a50118f35479d68fe18ecf5112a 100644 (file)
@@ -126,7 +126,7 @@ implementations do nothing (except for :meth:`~HTMLParser.handle_startendtag`):
 
 .. method:: HTMLParser.handle_starttag(tag, attrs)
 
-   This method is called to handle the start of a tag (e.g. ``<div id="main">``).
+   This method is called to handle the start tag of an element (e.g. ``<div id="main">``).
 
    The *tag* argument is the name of the tag converted to lower case. The *attrs*
    argument is a list of ``(name, value)`` pairs containing the attributes found