[Python-checkins] CVS: python/dist/src/Doc/lib libhtmllib.tex,1.22,1.23 libhtmlparser.tex,1.1,1.2 libsgmllib.tex,1.21,1.22
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 05 Jul 2001 09:34:39 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv454/lib
Modified Files:
libhtmllib.tex libhtmlparser.tex libsgmllib.tex
Log Message:
Added more information on the differences between the htmllib and HTMLParser
modules.
Index: libhtmllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libhtmllib.tex,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** libhtmllib.tex 2000/07/16 19:01:09 1.22
--- libhtmllib.tex 2001/07/05 16:34:36 1.23
***************
*** 71,74 ****
--- 71,80 ----
\begin{seealso}
+ \seemodule{HTMLParser}{Alternate HTML parser that offers a slightly
+ lower-level view of the input, but is
+ designed to work with XHTML, and does not
+ implement some of the SGML syntax not used in
+ ``HTML as deployed'' and which isn't legal
+ for XHTML.}
\seemodule{htmlentitydefs}{Definition of replacement text for HTML
2.0 entities.}
Index: libhtmlparser.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libhtmlparser.tex,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** libhtmlparser.tex 2001/05/30 04:59:00 1.1
--- libhtmlparser.tex 2001/07/05 16:34:36 1.2
***************
*** 7,11 ****
This module defines a class \class{HTMLParser} which serves as the
basis for parsing text files formatted in HTML\index{HTML} (HyperText
! Mark-up Language) and XHTML.\index{XHTML}
--- 7,13 ----
This module defines a class \class{HTMLParser} which serves as the
basis for parsing text files formatted in HTML\index{HTML} (HyperText
! Mark-up Language) and XHTML.\index{XHTML} Unlike the parser in
! \refmodule{htmllib}, this parser is not based on the SGML parser in
! \refmodule{sgmllib}.
***************
*** 16,19 ****
--- 18,25 ----
when tags begin and end. The \class{HTMLParser} class is meant to be
overridden by the user to provide a desired behavior.
+
+ Unlike the parser in \refmodule{htmllib}, 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.
\end{classdesc}
Index: libsgmllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsgmllib.tex,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** libsgmllib.tex 2001/03/16 20:39:41 1.21
--- libsgmllib.tex 2001/07/05 16:34:36 1.22
***************
*** 11,16 ****
Mark-up Language). In fact, it does not provide a full SGML parser
--- it only parses SGML insofar as it is used by HTML, and the module
! only exists as a base for the \refmodule{htmllib}\refstmodindex{htmllib}
! module.
--- 11,17 ----
Mark-up Language). In fact, it does not provide a full SGML parser
--- it only parses SGML insofar as it is used by HTML, and the module
! only exists as a base for the \refmodule{htmllib} module. Another
! HTML parser which supports XHTML and offers a somewhat different
! interface is available in the \refmodule{HTMLParser} module.