4 /* clean.h -- clean up misuse of presentation markup
6 (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
7 See tidy.h for the copyright notice.
11 void TY_(FixNodeLinks)(Node *node);
13 void TY_(FreeStyles)( TidyDocImpl* doc );
15 /* Add class="foo" to node
17 void TY_(AddStyleAsClass)( TidyDocImpl* doc, Node *node, ctmbstr stylevalue );
18 void TY_(AddStyleProperty)(TidyDocImpl* doc, Node *node, ctmbstr property );
20 void TY_(CleanDocument)( TidyDocImpl* doc );
22 /* simplifies <b><b> ... </b> ...</b> etc. */
23 void TY_(NestedEmphasis)( TidyDocImpl* doc, Node* node );
25 /* replace i by em and b by strong */
26 void TY_(EmFromI)( TidyDocImpl* doc, Node* node );
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
35 void TY_(List2BQ)( TidyDocImpl* doc, Node* node );
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
42 void TY_(BQ2Div)( TidyDocImpl* doc, Node* node );
45 void TY_(DropSections)( TidyDocImpl* doc, Node* node );
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
55 void TY_(CleanWord2000)( TidyDocImpl* doc, Node *node);
57 Bool TY_(IsWord2000)( TidyDocImpl* doc );
59 /* where appropriate move object elements from head to body */
60 void TY_(BumpObject)( TidyDocImpl* doc, Node *html );
62 /* This is disabled due to http://tidy.sf.net/bug/681116 */
64 void TY_(FixBrakes)( TidyDocImpl* pDoc, Node *pParent );
67 void TY_(VerifyHTTPEquiv)( TidyDocImpl* pDoc, Node *pParent );
69 void TY_(DropComments)(TidyDocImpl* doc, Node* node);
70 void TY_(DropFontElements)(TidyDocImpl* doc, Node* node, Node **pnode);
71 void TY_(WbrToSpace)(TidyDocImpl* doc, Node* node);
72 void TY_(DowngradeTypography)(TidyDocImpl* doc, Node* node);
73 void TY_(ReplacePreformattedSpaces)(TidyDocImpl* doc, Node* node);
74 void TY_(NormalizeSpaces)(Lexer *lexer, Node *node);
75 void TY_(ConvertCDATANodes)(TidyDocImpl* doc, Node* node);
77 void TY_(FixAnchors)(TidyDocImpl* doc, Node *node, Bool wantName, Bool wantId);
78 void TY_(FixXhtmlNamespace)(TidyDocImpl* doc, Bool wantXmlns);
79 void TY_(FixLanguageInformation)(TidyDocImpl* doc, Node* node, Bool wantXmlLang, Bool wantLang);
82 #endif /* __CLEAN_H__ */