summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-03-16 20:39:41 (GMT)
committerFred Drake <fdrake@acm.org>2001-03-16 20:39:41 (GMT)
commitb15bbc8d3d1e42da8b2fe4f4eb83108a76025a49 (patch)
tree359cad3af2ada87ab25dae84fea4d57556c65d48 /Doc
parent669573726bb31d8862e98b3843549e5fe0b54d37 (diff)
downloadcpython-b15bbc8d3d1e42da8b2fe4f4eb83108a76025a49.zip
cpython-b15bbc8d3d1e42da8b2fe4f4eb83108a76025a49.tar.gz
cpython-b15bbc8d3d1e42da8b2fe4f4eb83108a76025a49.tar.bz2
Add documentation for SGMLParser.handle_decl().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libsgmllib.tex10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/lib/libsgmllib.tex b/Doc/lib/libsgmllib.tex
index 9907caa..5fe0c8d 100644
--- a/Doc/lib/libsgmllib.tex
+++ b/Doc/lib/libsgmllib.tex
@@ -145,6 +145,16 @@ cause this method to be called with the argument \code{'text'}. The
default method does nothing.
\end{methoddesc}
+\begin{methoddesc}{handle_decl}{data}
+Method called when an SGML declaration is read by the parser. In
+practice, the \code{DOCTYPE} declaration is the only thing observed in
+HTML, but the parser does not discriminate among different (or broken)
+declarations. Internal subsets in a \code{DOCTYPE} declaration are
+not supported. The \var{data} parameter will be the entire contents
+of the declaration inside the \code{<!}...\code{>} markup. The
+default implementation does nothing.
+\end{methoddesc}
+
\begin{methoddesc}{report_unbalanced}{tag}
This method is called when an end tag is found which does not
correspond to any open element.