March 2003
Intermediate to advanced
656 pages
39h 30m
English
start_tag
s.start_tag(attributes)
X supplies a method thus named for each
tag, with an end tag, that
X wants to process.
tag must be in lowercase in the method
name, but can be in any mix of cases in the parsed text.
SGMLParser’s
handle_tag method calls
start_
tag as
appropriate. 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.
Read now
Unlock full access