Skip to content

Commit

Permalink
Update html.parser.rst (pythonGH-30678)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
geryogam authored Feb 17, 2022
1 parent fc115c9 commit 2945f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/html.parser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2945f5a

Please sign in to comment.