mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Add documentation for SGMLParser.handle_decl().
This commit is contained in:
parent
669573726b
commit
b15bbc8d3d
1 changed files with 10 additions and 0 deletions
|
@ -145,6 +145,16 @@ cause this method to be called with the argument \code{'text'}. The
|
||||||
default method does nothing.
|
default method does nothing.
|
||||||
\end{methoddesc}
|
\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}
|
\begin{methoddesc}{report_unbalanced}{tag}
|
||||||
This method is called when an end tag is found which does not
|
This method is called when an end tag is found which does not
|
||||||
correspond to any open element.
|
correspond to any open element.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue