khtml::KHTMLParser Class Reference
The parser for html. More...
#include <htmlparser.h>
Public Member Functions | |
KHTMLParser (KHTMLView *w, DOM::DocumentPtr *i) | |
KHTMLParser (DOM::DocumentFragmentImpl *frag, DOM::DocumentPtr *doc) | |
void | parseToken (Token *_t) |
parses one token delivered by the tokenizer | |
void | reset () |
resets the parser | |
bool | skipMode () const |
bool | noSpaces () const |
bool | preMode () const |
bool | selectMode () const |
DOM::HTMLDocumentImpl * | doc () const |
DOM::DocumentPtr * | docPtr () const |
Protected Member Functions | |
DOM::NodeImpl * | getElement (Token *) |
void | processCloseTag (Token *) |
bool | insertNode (DOM::NodeImpl *n, bool flat=false) |
void | pushBlock (int _id, int _level) |
void | popBlock (int _id) |
void | popOneBlock () |
void | popInlineBlocks () |
void | freeBlock (void) |
void | createHead () |
DOM::NodeImpl * | handleIsindex (Token *t) |
void | startBody () |
Protected Attributes | |
KHTMLView * | HTMLWidget |
DOM::DocumentPtr * | document |
DOM::NodeImpl * | current |
HTMLStackElem * | blockStack |
ushort * | forbiddenTag |
DOM::HTMLFormElementImpl * | form |
DOM::HTMLMapElementImpl * | map |
DOM::HTMLHeadElementImpl * | head |
DOM::NodeImpl * | isindex |
bool | inBody |
bool | haveContent |
bool | haveBody |
bool | haveFrameSet |
bool | m_inline |
bool | end |
bool | haveKonqBlock |
bool | inSelect |
int | inPre |
int | discard_until |
bool | headLoaded |
Detailed Description
The parser for html.It receives a stream of tokens from the HTMLTokenizer, and builds up the Document structure form it.
Definition at line 68 of file htmlparser.h.
Member Function Documentation
|
parses one token delivered by the tokenizer
Definition at line 189 of file htmlparser.cpp. References DOM::DOMString::string(). |
|
resets the parser
Definition at line 162 of file htmlparser.cpp. |
The documentation for this class was generated from the following files: