Name
handle_starttag
Synopsis
s.handle_starttag(tag, method, attributes)Called to handle tags for which X supplies
a method start_
tag or
do_
tag.
tag is the tag string, lowercased.
method is the bound method for
start_
tag or
do_
tag.
attributes is a list of pairs
(
name,value
),
where name is each
attribute’s name, lowercased, and
value is the value, processed to resolve
entity references and character references and to remove surrounding
quotes. When X supplies both
start_
tag and
do_
tag methods,
start
_tag has
precedence and do_
tag
is ignored. SGMLParser’s
implementation of handle_starttag calls
method
(
attributes
).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access