diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-12-03 04:26:18 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-12-03 04:26:18 (GMT) |
commit | bb7b753cfce2a0501854c96ae88d3113bdf7d375 (patch) | |
tree | c50608dddf996d872720630546bc991d32692fa3 /Doc/library/html.parser.rst | |
parent | b579dba1195df97f87ba868a5987f18fb7509bff (diff) | |
download | cpython-bb7b753cfce2a0501854c96ae88d3113bdf7d375.zip cpython-bb7b753cfce2a0501854c96ae88d3113bdf7d375.tar.gz cpython-bb7b753cfce2a0501854c96ae88d3113bdf7d375.tar.bz2 |
Add missing versionchanged, correct 'throw' wording to 'raise'.
Diffstat (limited to 'Doc/library/html.parser.rst')
-rw-r--r-- | Doc/library/html.parser.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/html.parser.rst b/Doc/library/html.parser.rst index 743d183..e415700 100644 --- a/Doc/library/html.parser.rst +++ b/Doc/library/html.parser.rst @@ -27,6 +27,8 @@ parsing text files formatted in HTML (HyperText Mark-up Language) and XHTML. This parser does not check that end tags match start tags or call the end-tag handler for elements which are closed implicitly by closing an outer element. + .. versionchanged:: 3.2 *strict* keyword added + An exception is defined as well: @@ -197,6 +199,6 @@ As a basic example, below is a very basic HTML parser that uses the .. rubric:: Footnotes -.. [#] For backward compatibility reasons *strict* mode does not throw - errors for all non-compliant HTML. That is, some invalid HTML +.. [#] For backward compatibility reasons *strict* mode does not raise + exceptions for all non-compliant HTML. That is, some invalid HTML is tolerated even in *strict* mode. |