summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-02-17 12:41:07 (GMT)
committerGitHub <noreply@github.com>2022-02-17 12:41:07 (GMT)
commit68e80c4e74fdf549146c2b724588038160d79d26 (patch)
tree72c6b770fa0c7c7888241ed3d6152890f1ab0e31
parenta481be0c5f5089ed5e81b9855f71eae12039cad2 (diff)
downloadcpython-68e80c4e74fdf549146c2b724588038160d79d26.zip
cpython-68e80c4e74fdf549146c2b724588038160d79d26.tar.gz
cpython-68e80c4e74fdf549146c2b724588038160d79d26.tar.bz2
[3.10] Update html.parser.rst (GH-30678) (GH-31385)
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 2945f5a7c51200bfc5c493ccb626fc414e1385b1) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Automerge-Triggered-By: GH:merwok
-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