HTML Tidy  5.4.0
The HTACG Tidy HTML Project
parser.h
Go to the documentation of this file.
1 #ifndef __PARSER_H__
2 #define __PARSER_H__
3 
4 /* parser.h -- HTML Parser
5 
6  (c) 1998-2007 (W3C) MIT, ERCIM, Keio University
7  See tidy.h for the copyright notice.
8 
9 */
10 
11 #include "forward.h"
12 
13 Bool TY_(CheckNodeIntegrity)(Node *node);
14 
15 Bool TY_(TextNodeEndWithSpace)( Lexer *lexer, Node *node );
16 
17 /*
18  used to determine how attributes
19  without values should be printed
20  this was introduced to deal with
21  user defined tags e.g. Cold Fusion
22 */
23 Bool TY_(IsNewNode)(Node *node);
24 
25 void TY_(CoerceNode)(TidyDocImpl* doc, Node *node, TidyTagId tid, Bool obsolete, Bool expected);
26 
27 /* extract a node and its children from a markup tree */
28 Node *TY_(RemoveNode)(Node *node);
29 
30 /* remove node from markup tree and discard it */
31 Node *TY_(DiscardElement)( TidyDocImpl* doc, Node *element);
32 
33 /* insert node into markup tree as the firt element
34  of content of element */
35 void TY_(InsertNodeAtStart)(Node *element, Node *node);
36 
37 /* insert node into markup tree as the last element
38  of content of "element" */
39 void TY_(InsertNodeAtEnd)(Node *element, Node *node);
40 
41 /* insert node into markup tree before element */
42 void TY_(InsertNodeBeforeElement)(Node *element, Node *node);
43 
44 /* insert node into markup tree after element */
45 void TY_(InsertNodeAfterElement)(Node *element, Node *node);
46 
47 Node *TY_(TrimEmptyElement)( TidyDocImpl* doc, Node *element );
48 Node* TY_(DropEmptyElements)(TidyDocImpl* doc, Node* node);
49 
50 
51 /* assumes node is a text node */
52 Bool TY_(IsBlank)(Lexer *lexer, Node *node);
53 
54 Bool TY_(IsJavaScript)(Node *node);
55 
56 /*
57  HTML is the top level element
58 */
59 void TY_(ParseDocument)( TidyDocImpl* doc );
60 
61 
62 
63 /*
64  XML documents
65 */
66 Bool TY_(XMLPreserveWhiteSpace)( TidyDocImpl* doc, Node *element );
67 
68 void TY_(ParseXMLDocument)( TidyDocImpl* doc );
69 
70 #endif /* __PARSER_H__ */
TidyTagId
Known HTML element types.
Definition: tidyenum.h:311
Bool
Definition: tidyplatform.h:593
#define TY_(str)
Definition: forward.h:23