markupbase
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/markupbase.py
Module Docs

Shared support for scanning document type declarations in HTML and XHTML.
 
This module is used as a foundation for the HTMLParser and sgmllib
modules (indirectly, for htmllib as well).  It has no documented
public API and should not be used directly.

 
Classes
       
ParserBase

 
class ParserBase
    Parser base class which provides some common support methods used
by the SGML/HTML and XHTML parsers.
 
  Methods defined here:
__init__(self)
error(self, message)
getpos(self)
Return current line number and offset.
parse_comment(self, i, report=1)
# Internal -- parse comment, return length or -1 if not terminated
parse_declaration(self, i)
# Internal -- parse declaration (for use by subclasses).
parse_marked_section(self, i, report=1)
# Internal -- parse a marked section
# Override this to handle MS-word extension syntax <![if word]>content<![endif]>
reset(self)
unknown_decl(self, data)
# To be overridden -- handlers for unknown objects
updatepos(self, i, j)
# Internal -- update line number and offset.  This should be
# called for each piece of data exactly once, in order -- in other
# words the concatenation of all the input strings to this
# function should be exactly the entire input.