diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-03-06 14:43:00 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-03-06 14:43:00 +0000 |
commit | ab8a6bba250b35ea87d8976e9cd4dd74e57cfd0a (patch) | |
tree | 6e581be3225031d7cc1e1267881a64cca00243a7 /Doc/lib/libhtmlparser.tex | |
parent | ff432e6f4ad8e4430ce984ec883a3d038e1c7ab9 (diff) | |
download | cpython-git-ab8a6bba250b35ea87d8976e9cd4dd74e57cfd0a.tar.gz |
Patch #912410: Replace HTML entity references for attribute values
in HTMLParser.
Diffstat (limited to 'Doc/lib/libhtmlparser.tex')
-rw-r--r-- | Doc/lib/libhtmlparser.tex | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Doc/lib/libhtmlparser.tex b/Doc/lib/libhtmlparser.tex index 52f8409a41..5e99f27f61 100644 --- a/Doc/lib/libhtmlparser.tex +++ b/Doc/lib/libhtmlparser.tex @@ -75,14 +75,18 @@ This method is called to handle the start of a tag. It is intended to be overridden by a derived class; the base class implementation does nothing. -The \var{tag} argument is the name of the tag converted to -lower case. The \var{attrs} argument is a list of \code{(\var{name}, -\var{value})} pairs containing the attributes found inside the tag's -\code{<>} brackets. The \var{name} will be translated to lower case -and double quotes and backslashes in the \var{value} have been -interpreted. For instance, for the tag \code{<A -HREF="http://www.cwi.nl/">}, this method would be called as +The \var{tag} argument is the name of the tag converted to lower case. +The \var{attrs} argument is a list of \code{(\var{name}, \var{value})} +pairs containing the attributes found inside the tag's \code{<>} +brackets. The \var{name} will be translated to lower case, and quotes +in the \var{value} have been removed, and character and entity +references have been replaced. For instance, for the tag \code{<A + HREF="http://www.cwi.nl/">}, this method would be called as \samp{handle_starttag('a', [('href', 'http://www.cwi.nl/')])}. + +\versionchanged[All entity references from htmlentitydefs are now +replaced in the attribute values]{2.6} + \end{methoddesc} \begin{methoddesc}{handle_startendtag}{tag, attrs} |