| |
Methods defined here:
- __init__(self)
- _parse_doctype_attlist(self, i, declstartpos)
- # Internal -- scan past <!ATTLIST declarations
- _parse_doctype_element(self, i, declstartpos)
- # Internal -- scan past <!ELEMENT declarations
- _parse_doctype_entity(self, i, declstartpos)
- # Internal -- scan past <!ENTITY declarations
- _parse_doctype_notation(self, i, declstartpos)
- # Internal -- scan past <!NOTATION declarations
- _parse_doctype_subset(self, i, declstartpos)
- # Internal -- scan past the internal subset in a <!DOCTYPE declaration,
# returning the index just past any whitespace following the trailing ']'.
- _scan_name(self, i, declstartpos)
- # Internal -- scan a name token and the new position and the token, or
# return -1 if we've reached the end of the buffer.
- error(self, message)
- getpos(self)
- Return current line number and offset.
- parse_declaration(self, i)
- # Internal -- parse declaration (for use by subclasses).
- 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.
Data and non-method functions defined here:
- __doc__ = 'Parser base class which provides some common su...ds used\n by the SGML/HTML and XHTML parsers.'
- __module__ = 'markupbase'
- _decl_otherchars = ''
|