Module markupbase
[hide private]
[frames] | no frames]

Module markupbase

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 [hide private]
ParserBase
Parser base class which provides some common support methods used by the SGML/HTML and XHTML parsers.
Functions [hide private]
 
_declname_match(...)
match(string[, pos[, endpos]]) --> match object or None.
 
_declstringlit_match(...)
match(string[, pos[, endpos]]) --> match object or None.
Variables [hide private]
  _commentclose = re.compile(r'--\s*>')
  _markedsectionclose = re.compile(r'\]\s*\]\s*>')
  _msmarkedsectionclose = re.compile(r'\]\s*>')
Function Details [hide private]

_declname_match(...)

 

match(string[, pos[, endpos]]) --> match object or None. Matches zero or more characters at the beginning of the string

_declstringlit_match(...)

 

match(string[, pos[, endpos]]) --> match object or None. Matches zero or more characters at the beginning of the string