[Python-checkins] Update html.parser.rst (GH-30678)

miss-islington webhook-mailer at python.org
Thu Feb 17 07:20:53 EST 2022


https://github.com/python/cpython/commit/2945f5a7c51200bfc5c493ccb626fc414e1385b1
commit: 2945f5a7c51200bfc5c493ccb626fc414e1385b1
branch: main
author: Géry Ogam <gery.ogam at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-02-17T04:20:40-08:00
summary:

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.

files:
M Doc/library/html.parser.rst

diff --git a/Doc/library/html.parser.rst b/Doc/library/html.parser.rst
index ac844a683bf7a..03aff25ce6117 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



More information about the Python-checkins mailing list