summaryrefslogtreecommitdiffstats
path: root/Doc/library/html.parser.rst
diff options
context:
space:
mode:
authorGéry Ogam <gery.ogam@gmail.com>2022-02-17 12:20:40 (GMT)
committerGitHub <noreply@github.com>2022-02-17 12:20:40 (GMT)
commit2945f5a7c51200bfc5c493ccb626fc414e1385b1 (patch)
tree215554740fa1f4124c0c92c8c76cc1fa4034f034 /Doc/library/html.parser.rst
parentfc115c9bde52a58b4fb9be2b80c3d6be8a4d2454 (diff)
downloadcpython-2945f5a7c51200bfc5c493ccb626fc414e1385b1.zip
cpython-2945f5a7c51200bfc5c493ccb626fc414e1385b1.tar.gz
cpython-2945f5a7c51200bfc5c493ccb626fc414e1385b1.tar.bz2
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.
Diffstat (limited to 'Doc/library/html.parser.rst')
-rw-r--r--Doc/library/html.parser.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/html.parser.rst b/Doc/library/html.parser.rst
index ac844a6..03aff25 100644
--- a/Doc/library/html.parser.rst
+++ b/Doc/library/html.parser.rst
@@ -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