March 2003
Intermediate to advanced
656 pages
39h 30m
English
do_tag
s.do_tag(attributes)
X supplies a method with such a name for
each tag, with no corresponding 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
do_
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