diff options
| author | Georg Brandl <georg@python.org> | 2006-04-01 08:35:18 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-04-01 08:35:18 (GMT) |
| commit | 7f6b67c2359d9b52b2eabc1e2ccff4cedb5c78b7 (patch) | |
| tree | 85426998f3d08e048d4b0211361b7140b04bc414 /Doc/lib/libsgmllib.tex | |
| parent | 48d5e508ebc136f8f67a2cb2bdd29e55324f5a95 (diff) | |
| download | cpython-7f6b67c2359d9b52b2eabc1e2ccff4cedb5c78b7.zip cpython-7f6b67c2359d9b52b2eabc1e2ccff4cedb5c78b7.tar.gz cpython-7f6b67c2359d9b52b2eabc1e2ccff4cedb5c78b7.tar.bz2 | |
patch #1462498: handle entityrefs in attribute values.
Diffstat (limited to 'Doc/lib/libsgmllib.tex')
| -rw-r--r-- | Doc/lib/libsgmllib.tex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/lib/libsgmllib.tex b/Doc/lib/libsgmllib.tex index 27bf0b0..592c191 100644 --- a/Doc/lib/libsgmllib.tex +++ b/Doc/lib/libsgmllib.tex @@ -95,12 +95,15 @@ lower case, and the \var{method} argument is the bound method which should be used to support semantic interpretation of the start tag. The \var{attributes} argument is a list of \code{(\var{name}, \var{value})} pairs containing the attributes found inside the tag's -\code{<>} brackets. The \var{name} has been translated to lower case -and double quotes and backslashes in the \var{value} have been interpreted. +\code{<>} brackets. The \var{name} has been translated to lower case. +Double quotes and backslashes in the \var{value} have been interpreted, +as well as known entity and character references. For instance, for the tag \code{<A HREF="http://www.cwi.nl/">}, this method would be called as \samp{unknown_starttag('a', [('href', 'http://www.cwi.nl/')])}. The base implementation simply calls \var{method} with \var{attributes} as the only argument. +\versionadded[Handling of entity and character references within + attribute values]{2.5} \end{methoddesc} \begin{methoddesc}{handle_endtag}{tag, method} |
