diff options
author | Georg Brandl <georg@python.org> | 2010-08-01 21:09:54 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-01 21:09:54 (GMT) |
commit | feb4c880143e5478d73356e827b32ec973b10f07 (patch) | |
tree | c2f88a67eb85f466c62b90cd8e8e6a1ead505eca | |
parent | 4c07cdc0c71e9e996037271b741da6376122f146 (diff) | |
download | cpython-feb4c880143e5478d73356e827b32ec973b10f07.zip cpython-feb4c880143e5478d73356e827b32ec973b10f07.tar.gz cpython-feb4c880143e5478d73356e827b32ec973b10f07.tar.bz2 |
Merged revisions 83223 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r83223 | georg.brandl | 2010-07-29 15:38:37 +0200 (Do, 29 Jul 2010) | 1 line
#3874: document HTMLParser.unknown_decl().
........
-rw-r--r-- | Doc/library/html.parser.rst | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Doc/library/html.parser.rst b/Doc/library/html.parser.rst index ef0ae83..c38cf2a 100644 --- a/Doc/library/html.parser.rst +++ b/Doc/library/html.parser.rst @@ -134,10 +134,18 @@ An exception is defined as well: .. method:: HTMLParser.handle_decl(decl) - Method called when an SGML declaration is read by the parser. The *decl* - parameter will be the entire contents of the declaration inside the ``<!``...\ - ``>`` markup. It is intended to be overridden by a derived class; the base - class implementation does nothing. + Method called when an SGML ``doctype`` declaration is read by the parser. + The *decl* parameter will be the entire contents of the declaration inside + the ``<!...>`` markup. It is intended to be overridden by a derived class; + the base class implementation does nothing. + + +.. method:: HTMLParser.unknown_decl(data) + + Method called when an unrecognized SGML declaration is read by the parser. + The *data* parameter will be the entire contents of the declaration inside + the ``<!...>`` markup. It is sometimes useful to be be overridden by a + derived class; the base class implementation throws an :exc:`HTMLParseError`. .. method:: HTMLParser.handle_pi(data) |