]> granicus.if.org Git - python/commitdiff
clarify new docs on attr value entity expansion
authorGeorg Brandl <georg@python.org>
Sat, 1 Apr 2006 08:39:50 +0000 (08:39 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 1 Apr 2006 08:39:50 +0000 (08:39 +0000)
Doc/lib/libsgmllib.tex

index 592c1916318ce528ea4fc505a6dcc49f552a91aa..cae6821048502cce9ec88b3e7cf149d001e5efd4 100644 (file)
@@ -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