HTML Tidy  5.6.0
The HTACG Tidy HTML Project
clean.h
Go to the documentation of this file.
1 #ifndef __CLEAN_H__
2 #define __CLEAN_H__
3 
4 /* clean.h -- clean up misuse of presentation markup
5 
6  (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
7  See tidy.h for the copyright notice.
8 
9 */
10 
11 void TY_(FixNodeLinks)(Node *node);
12 
13 void TY_(FreeStyles)( TidyDocImpl* doc );
14 
15 /* Add class="foo" to node
16 */
17 void TY_(AddStyleAsClass)( TidyDocImpl* doc, Node *node, ctmbstr stylevalue );
18 void TY_(AddStyleProperty)(TidyDocImpl* doc, Node *node, ctmbstr property );
19 
20 void TY_(CleanDocument)( TidyDocImpl* doc );
21 
22 /* simplifies <b><b> ... </b> ...</b> etc. */
23 void TY_(NestedEmphasis)( TidyDocImpl* doc, Node* node );
24 
25 /* replace i by em and b by strong */
26 void TY_(EmFromI)( TidyDocImpl* doc, Node* node );
27 
28 /*
29  Some people use dir or ul without an li
30  to indent the content. The pattern to
31  look for is a list with a single implicit
32  li. This is recursively replaced by an
33  implicit blockquote.
34 */
35 void TY_(List2BQ)( TidyDocImpl* doc, Node* node );
36 
37 /*
38  Replace implicit blockquote by div with an indent
39  taking care to reduce nested blockquotes to a single
40  div with the indent set to match the nesting depth
41 */
42 void TY_(BQ2Div)( TidyDocImpl* doc, Node* node );
43 
44 
45 void TY_(DropSections)( TidyDocImpl* doc, Node* node );
46 
47 
48 /*
49  This is a major clean up to strip out all the extra stuff you get
50  when you save as web page from Word 2000. It doesn't yet know what
51  to do with VML tags, but these will appear as errors unless you
52  declare them as new tags, such as o:p which needs to be declared
53  as inline.
54 */
55 void TY_(CleanWord2000)( TidyDocImpl* doc, Node *node);
56 
57 Bool TY_(IsWord2000)( TidyDocImpl* doc );
58 
59 /* where appropriate move object elements from head to body */
60 void TY_(BumpObject)( TidyDocImpl* doc, Node *html );
61 
62 Bool TY_(TidyMetaCharset)(TidyDocImpl* doc);
63 
64 void TY_(DropComments)(TidyDocImpl* doc, Node* node);
65 void TY_(DropFontElements)(TidyDocImpl* doc, Node* node, Node **pnode);
66 void TY_(WbrToSpace)(TidyDocImpl* doc, Node* node);
67 void TY_(DowngradeTypography)(TidyDocImpl* doc, Node* node);
68 void TY_(ReplacePreformattedSpaces)(TidyDocImpl* doc, Node* node);
69 void TY_(NormalizeSpaces)(Lexer *lexer, Node *node);
70 void TY_(ConvertCDATANodes)(TidyDocImpl* doc, Node* node);
71 
72 void TY_(FixAnchors)(TidyDocImpl* doc, Node *node, Bool wantName, Bool wantId);
73 void TY_(FixXhtmlNamespace)(TidyDocImpl* doc, Bool wantXmlns);
74 void TY_(FixLanguageInformation)(TidyDocImpl* doc, Node* node, Bool wantXmlLang, Bool wantLang);
75 
76 /* Issue #567 - move style elements from body to head */
77 void TY_(CleanStyle)(TidyDocImpl* doc, Node *html);
78 
79 #endif /* __CLEAN_H__ */
const tmbchar * ctmbstr
Definition: tidyplatform.h:594
Bool
Definition: tidyplatform.h:631
Adds/checks/fixes meta charset in the head, based on document type.
Definition: tidyenum.h:631
#define TY_(str)
Definition: forward.h:23