107 #define CM_EMPTY (1 << 0)
109 #define CM_HTML (1 << 1)
111 #define CM_HEAD (1 << 2)
113 #define CM_BLOCK (1 << 3)
115 #define CM_INLINE (1 << 4)
117 #define CM_LIST (1 << 5)
119 #define CM_DEFLIST (1 << 6)
121 #define CM_TABLE (1 << 7)
123 #define CM_ROWGRP (1 << 8)
125 #define CM_ROW (1 << 9)
128 #define CM_FIELD (1 << 10)
131 #define CM_OBJECT (1 << 11)
133 #define CM_PARAM (1 << 12)
135 #define CM_FRAMES (1 << 13)
137 #define CM_HEADING (1 << 14)
139 #define CM_OPT (1 << 15)
141 #define CM_IMG (1 << 16)
143 #define CM_MIXED (1 << 17)
146 #define CM_NO_INDENT (1 << 18)
148 #define CM_OBSOLETE (1 << 19)
151 #define CM_NEW (1 << 20)
153 #define CM_OMITST (1 << 21)
182 #define VERS_SUN 8192u
183 #define VERS_NETSCAPE 16384u
184 #define VERS_MICROSOFT 32768u
187 #define VERS_XML 65536u
194 #define VERS_UNKNOWN (xxxx)
195 #define VERS_HTML20 (HT20)
196 #define VERS_HTML32 (HT32)
197 #define VERS_HTML40_STRICT (H40S|H41S|X10S)
198 #define VERS_HTML40_LOOSE (H40T|H41T|X10T)
199 #define VERS_FRAMESET (H40F|H41F|X10F)
200 #define VERS_XHTML11 (XH11)
201 #define VERS_BASIC (XB10)
203 #define VERS_HTML5 (HT50|XH50)
206 #define VERS_HTML40 (VERS_HTML40_STRICT|VERS_HTML40_LOOSE|VERS_FRAMESET)
207 #define VERS_IFRAME (VERS_HTML40_LOOSE|VERS_FRAMESET)
208 #define VERS_LOOSE (VERS_HTML20|VERS_HTML32|VERS_IFRAME)
209 #define VERS_EVENTS (VERS_HTML40|VERS_XHTML11)
210 #define VERS_FROM32 (VERS_HTML32|VERS_HTML40|HT50)
211 #define VERS_FROM40 (VERS_HTML40|VERS_XHTML11|VERS_BASIC|VERS_HTML5)
212 #define VERS_XHTML (X10S|X10T|X10F|XH11|XB10|XH50)
215 #define VERS_STRICT (VERS_HTML5|VERS_HTML40_STRICT)
218 #define VERS_ALL (VERS_HTML20|VERS_HTML32|VERS_FROM40|XH50|HT50)
221 #define VERS_PROPRIETARY (VERS_NETSCAPE|VERS_MICROSOFT|VERS_SUN)
226 typedef struct _Style TagStyle;
443 TY_PRIVATE void TY_(RemoveAttribute)( TidyDocImpl* doc, Node *node, AttVal *attr );
#define TY_PRIVATE
Definition: forward.h:29
#define TY_(str)
Definition: forward.h:23
TidyTagId
Known HTML element types.
Definition: tidyenum.h:857
Node * next
Definition: lexer.h:300
tmbstr element
Definition: lexer.h:287
Node * parent
Definition: lexer.h:298
uint istackbase
Definition: lexer.h:374
Node * last
Definition: lexer.h:302
Bool seenEndBody
Definition: lexer.h:352
uint txtstart
Definition: lexer.h:343
const Attribute * dict
Definition: lexer.h:258
LexerState state
Definition: lexer.h:345
IStack * next
Definition: lexer.h:285
AttVal * attributes
Definition: lexer.h:288
Node * root
Definition: lexer.h:349
tmbstr tag
Definition: lexer.h:230
uint istacksize
Definition: lexer.h:373
NodeType type
Definition: lexer.h:312
uint columns
Definition: lexer.h:332
TagStyle * styles
Definition: lexer.h:376
AttVal * next
Definition: lexer.h:257
uint lexlength
Definition: lexer.h:365
Bool pushed
Definition: lexer.h:334
tmbstr tag_class
Definition: lexer.h:231
Bool insertspace
Definition: lexer.h:335
LexerState
Definition: lexer.h:75
@ LEX_PROCINSTR
Definition: lexer.h:82
@ LEX_CDATA
Definition: lexer.h:83
@ LEX_DOCTYPE
Definition: lexer.h:81
@ LEX_CONTENT
Definition: lexer.h:76
@ LEX_STARTTAG
Definition: lexer.h:79
@ LEX_JSTE
Definition: lexer.h:86
@ LEX_SECTION
Definition: lexer.h:84
@ LEX_COMMENT
Definition: lexer.h:80
@ LEX_ASP
Definition: lexer.h:85
@ LEX_ENDTAG
Definition: lexer.h:78
@ LEX_XMLDECL
Definition: lexer.h:88
@ LEX_GT
Definition: lexer.h:77
@ LEX_PHP
Definition: lexer.h:87
uint lines
Definition: lexer.h:331
GetTokenMode
Definition: lexer.h:508
@ OtherNamespace
Definition: lexer.h:513
@ Preformatted
Definition: lexer.h:511
@ IgnoreWhitespace
Definition: lexer.h:509
@ CdataContent
Definition: lexer.h:514
@ MixedContent
Definition: lexer.h:510
@ IgnoreMarkup
Definition: lexer.h:512
int delim
Definition: lexer.h:261
uint versions
Definition: lexer.h:339
tmbstr attribute
Definition: lexer.h:262
Bool bad_doctype
Definition: lexer.h:342
uint versionEmitted
Definition: lexer.h:341
Bool seenEndHtml
Definition: lexer.h:353
Node * inode
Definition: lexer.h:369
tmbstr value
Definition: lexer.h:245
IStack * insert
Definition: lexer.h:370
uint txtend
Definition: lexer.h:344
ParseDocTypeDeclState
Definition: lexer.h:93
@ DT_QUOTEDSTRING
Definition: lexer.h:97
@ DT_DOCTYPENAME
Definition: lexer.h:95
@ DT_INTERMEDIATE
Definition: lexer.h:94
@ DT_INTSUBSET
Definition: lexer.h:98
@ DT_PUBLICSYSTEM
Definition: lexer.h:96
TagStyle * next
Definition: lexer.h:233
uint end
Definition: lexer.h:311
uint column
Definition: lexer.h:315
TidyAllocator * allocator
Definition: lexer.h:378
const Dict * tag
Definition: lexer.h:286
Bool exiled
Definition: lexer.h:337
uint lexsize
Definition: lexer.h:366
Bool closed
Definition: lexer.h:317
uint istacklength
Definition: lexer.h:372
tmbstr properties
Definition: lexer.h:232
Bool excludeBlocks
Definition: lexer.h:336
Node * prev
Definition: lexer.h:299
NodeType
Definition: lexer.h:53
@ CommentTag
Definition: lexer.h:56
@ StartEndTag
Definition: lexer.h:61
@ XmlDecl
Definition: lexer.h:67
@ ProcInsTag
Definition: lexer.h:57
@ RootNode
Definition: lexer.h:54
@ SectionTag
Definition: lexer.h:63
@ AspTag
Definition: lexer.h:64
@ StartTag
Definition: lexer.h:59
@ PhpTag
Definition: lexer.h:66
@ CDATATag
Definition: lexer.h:62
@ TextNode
Definition: lexer.h:58
@ JsteTag
Definition: lexer.h:65
@ EndTag
Definition: lexer.h:60
@ DocTypeTag
Definition: lexer.h:55
Node * token
Definition: lexer.h:347
Bool waswhite
Definition: lexer.h:333
StyleProp * next
Definition: lexer.h:246
Node * asp
Definition: lexer.h:259
uint doctype
Definition: lexer.h:340
Bool implicit
Definition: lexer.h:318
tmbstr lexbuf
Definition: lexer.h:364
Node * php
Definition: lexer.h:260
Bool isvoyager
Definition: lexer.h:338
IStack * istack
Definition: lexer.h:371
const Dict * was
Definition: lexer.h:305
Node * itoken
Definition: lexer.h:348
uint start
Definition: lexer.h:310
uint line
Definition: lexer.h:314
Bool linebreak
Definition: lexer.h:319
tmbstr name
Definition: lexer.h:244
Node * content
Definition: lexer.h:301