Home | Trees | Indices | Help |
|
---|
|
markupbase.ParserBase --+ | HTMLParser.HTMLParser --+ | YadisHTMLParser
Parser that finds a meta http-equiv tag in the head of a html document.
When feeding in data, if the tag is matched or it will never be found, the parser will raise ParseDone with the uri as the first attribute.1, 2, 5 8 +--------------------------+ +-+ | | | | 4 | 3 1, 2, 5, 7 v | v TOP -> HTML -> HEAD ----------> TERMINATED | | ^ | ^ ^ | | 3 | | | | | +------------+ +-> FOUND ------+ | | 6 8 | | 1, 2 | +------------------------------------+ 1. any of </body>, </html>, </head> -> TERMINATE 2. <body> -> TERMINATE 3. <head> -> HEAD 4. <html> -> HTML 5. <html> -> TERMINATE 6. <meta http-equiv='X-XRDS-Location'> -> FOUND 7. <head> -> TERMINATE 8. Any input -> TERMINATE
|
|||
__init__(self) Initialize and reset this instance. |
|||
_terminate(self) | |||
handle_endtag(self, tag) | |||
handle_starttag(self, tag, attrs) | |||
feed(self,
chars) Feed data to the parser. |
|||
Inherited from Inherited from Inherited from |
|
|||
TOP = 0
|
|||
HTML = 1
|
|||
HEAD = 2
|
|||
FOUND = 3
|
|||
TERMINATED = 4
|
|||
Inherited from Inherited from |
|
Initialize and reset this instance.
|
|
|
|
Feed data to the parser. Call this as often as you want, with as little or as much text as you want (may include ' ').
|
|
TOP
|
HTML
|
HEAD
|
FOUND
|
TERMINATED
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Dec 8 13:17:18 2006 | http://epydoc.sourceforge.net |