~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

TidyLib
tidy/src/parser.h

Version: ~ [ 1.0 ] ~

** Warning: Cannot open xref database.

1 #ifndef __PARSER_H__ 2 #define __PARSER_H__ 3 4 /* parser.h -- HTML Parser 5 6 (c) 1998-2005 (W3C) MIT, ERCIM, Keio University 7 See tidy.h for the copyright notice. 8 9 CVS Info : 10 11 $Author: arnaud02 $ 12 $Date: 2005/08/03 18:07:01 $ 13 $Revision: 1.10 $ 14 15 */ 16 17 #include "forward.h" 18 19 Bool CheckNodeIntegrity(Node *node); 20 21 /* 22 used to determine how attributes 23 without values should be printed 24 this was introduced to deal with 25 user defined tags e.g. Cold Fusion 26 */ 27 Bool IsNewNode(Node *node); 28 29 void CoerceNode(TidyDocImpl* doc, Node *node, TidyTagId tid, Bool obsolete, Bool expected); 30 31 /* extract a node and its children from a markup tree */ 32 Node *RemoveNode(Node *node); 33 34 /* remove node from markup tree and discard it */ 35 Node *DiscardElement( TidyDocImpl* doc, Node *element); 36 37 /* insert node into markup tree as the firt element 38 of content of element */ 39 void InsertNodeAtStart(Node *element, Node *node); 40 41 /* insert node into markup tree as the last element 42 of content of "element" */ 43 void InsertNodeAtEnd(Node *element, Node *node); 44 45 /* insert node into markup tree before element */ 46 void InsertNodeBeforeElement(Node *element, Node *node); 47 48 /* insert node into markup tree after element */ 49 void InsertNodeAfterElement(Node *element, Node *node); 50 51 Node *TrimEmptyElement( TidyDocImpl* doc, Node *element ); 52 Node* DropEmptyElements(TidyDocImpl* doc, Node* node); 53 54 55 /* assumes node is a text node */ 56 Bool IsBlank(Lexer *lexer, Node *node); 57 58 59 /* 60 duplicate name attribute as an id 61 and check if id and name match 62 */ 63 /* acceptable content for pre elements */ 64 Bool PreContent( TidyDocImpl* doc, Node *node ); 65 66 Bool IsJavaScript(Node *node); 67 Bool DescendantOf(Node *element, TidyTagId tid); 68 69 /* 70 HTML is the top level element 71 */ 72 void ParseDocument( TidyDocImpl* doc ); 73 74 75 76 /* 77 XML documents 78 */ 79 Bool XMLPreserveWhiteSpace( TidyDocImpl* doc, Node *element ); 80 81 void ParseXMLDocument( TidyDocImpl* doc ); 82 83 #endif /* __PARSER_H__ */ 84

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.