HTML Tidy  5.9.15
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 TY_PRIVATE void TY_(FixNodeLinks)(Node *node);
12 
13 TY_PRIVATE void TY_(FreeStyles)( TidyDocImpl* doc );
14 
15 /* Add class="foo" to node
16 */
17 TY_PRIVATE void TY_(AddStyleAsClass)( TidyDocImpl* doc, Node *node, ctmbstr stylevalue );
18 TY_PRIVATE void TY_(AddStyleProperty)(TidyDocImpl* doc, Node *node, ctmbstr property );
19 
20 TY_PRIVATE void TY_(CleanDocument)( TidyDocImpl* doc );
21 
22 /* simplifies <b><b> ... </b> ...</b> etc. */
23 TY_PRIVATE void TY_(NestedEmphasis)( TidyDocImpl* doc, Node* node );
24 
25 /* replace i by em and b by strong */
26 TY_PRIVATE 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 TY_PRIVATE 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 TY_PRIVATE void TY_(BQ2Div)( TidyDocImpl* doc, Node* node );
43 
44 
45 TY_PRIVATE 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 TY_PRIVATE void TY_(CleanWord2000)( TidyDocImpl* doc, Node *node);
56 
57 TY_PRIVATE Bool TY_(IsWord2000)( TidyDocImpl* doc );
58 
59 /* where appropriate move object elements from head to body */
60 TY_PRIVATE void TY_(BumpObject)( TidyDocImpl* doc, Node *html );
61 
62 TY_PRIVATE Bool TY_(TidyMetaCharset)(TidyDocImpl* doc);
63 
64 TY_PRIVATE void TY_(DropComments)(TidyDocImpl* doc, Node* node);
65 TY_PRIVATE void TY_(DropFontElements)(TidyDocImpl* doc, Node* node, Node **pnode);
66 TY_PRIVATE void TY_(WbrToSpace)(TidyDocImpl* doc, Node* node);
67 TY_PRIVATE void TY_(DowngradeTypography)(TidyDocImpl* doc, Node* node);
68 TY_PRIVATE void TY_(ReplacePreformattedSpaces)(TidyDocImpl* doc, Node* node);
69 TY_PRIVATE void TY_(NormalizeSpaces)(Lexer *lexer, Node *node);
70 TY_PRIVATE void TY_(ConvertCDATANodes)(TidyDocImpl* doc, Node* node);
71 
72 TY_PRIVATE void TY_(FixAnchors)(TidyDocImpl* doc, Node *node, Bool wantName, Bool wantId);
73 TY_PRIVATE void TY_(FixXhtmlNamespace)(TidyDocImpl* doc, Bool wantXmlns);
74 TY_PRIVATE void TY_(FixLanguageInformation)(TidyDocImpl* doc, Node* node, Bool wantXmlLang, Bool wantLang);
75 
76 /* Issue #567 - move style elements from body to head */
77 TY_PRIVATE void TY_(CleanStyle)(TidyDocImpl* doc, Node *html);
78 /* Issue #692 - discard multiple titles */
79 TY_PRIVATE void TY_(CleanHead)(TidyDocImpl* doc);
80 
81 #endif /* __CLEAN_H__ */
#define TY_PRIVATE
Definition: forward.h:29
#define TY_(str)
Definition: forward.h:23
@ TidyMetaCharset
Adds/checks/fixes meta charset in the head, based on document type.
Definition: tidyenum.h:634
Bool
Definition: tidyplatform.h:662
const tmbchar * ctmbstr
Definition: tidyplatform.h:624