summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-04-01 08:39:50 (GMT)
committerGeorg Brandl <georg@python.org>2006-04-01 08:39:50 (GMT)
commit9cdf56318d3bffbf15643de55a09ef3952bd6914 (patch)
treec749078c5d732bbdf131eb67b790b8f3664d7772
parent07f5b35e190ab9be85143c6e8e1217d96bbf75ca (diff)
downloadcpython-9cdf56318d3bffbf15643de55a09ef3952bd6914.zip
cpython-9cdf56318d3bffbf15643de55a09ef3952bd6914.tar.gz
cpython-9cdf56318d3bffbf15643de55a09ef3952bd6914.tar.bz2
clarify new docs on attr value entity expansion
-rw-r--r--Doc/lib/libsgmllib.tex11
1 files changed, 9 insertions, 2 deletions
diff --git a/Doc/lib/libsgmllib.tex b/Doc/lib/libsgmllib.tex
index 592c191..cae6821 100644
--- a/Doc/lib/libsgmllib.tex
+++ b/Doc/lib/libsgmllib.tex
@@ -95,9 +95,16 @@ 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.
+\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.
+as well as known character references and known entity references
+terminated by a semicolon (normally, entity references can be terminated
+by any non-alphanumerical character, but this would break the very
+common case of \code{<A HREF="url?spam=1&eggs=2">} when \code{eggs}
+is a valid entity name).
+
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