HTML Tidy  0.1
tidyenum.h
00001 #ifndef __TIDYENUM_H__
00002 #define __TIDYENUM_H__
00003 
00004 /* @file tidyenum.h -- Split public enums into separate header
00005 
00006   Simplifies enum re-use in various wrappers.  e.g. SWIG
00007   generated wrappers and COM IDL files.
00008 
00009   Copyright (c) 1998-2008 World Wide Web Consortium
00010   (Massachusetts Institute of Technology, European Research 
00011   Consortium for Informatics and Mathematics, Keio University).
00012   All Rights Reserved.
00013 
00014   Contributing Author(s):
00015 
00016      Dave Raggett <dsr@w3.org>
00017 
00018   The contributing author(s) would like to thank all those who
00019   helped with testing, bug fixes and suggestions for improvements. 
00020   This wouldn't have been possible without your help.
00021 
00022   COPYRIGHT NOTICE:
00023  
00024   This software and documentation is provided "as is," and
00025   the copyright holders and contributing author(s) make no
00026   representations or warranties, express or implied, including
00027   but not limited to, warranties of merchantability or fitness
00028   for any particular purpose or that the use of the software or
00029   documentation will not infringe any third party patents,
00030   copyrights, trademarks or other rights. 
00031 
00032   The copyright holders and contributing author(s) will not be held
00033   liable for any direct, indirect, special or consequential damages
00034   arising out of any use of the software or documentation, even if
00035   advised of the possibility of such damage.
00036 
00037   Permission is hereby granted to use, copy, modify, and distribute
00038   this source code, or portions hereof, documentation and executables,
00039   for any purpose, without fee, subject to the following restrictions:
00040 
00041   1. The origin of this source code must not be misrepresented.
00042   2. Altered versions must be plainly marked as such and must
00043      not be misrepresented as being the original source.
00044   3. This Copyright notice may not be removed or altered from any
00045      source or altered source distribution.
00046  
00047   The copyright holders and contributing author(s) specifically
00048   permit, without fee, and encourage the use of this source code
00049   as a component for supporting the Hypertext Markup Language in
00050   commercial products. If you use this source code in a product,
00051   acknowledgment is not required but would be appreciated.
00052 
00053 
00054   Created 2001-05-20 by Charles Reitzel
00055   Updated 2002-07-01 by Charles Reitzel - 1st Implementation
00056 
00057 */
00058 
00059 #ifdef __cplusplus
00060 extern "C" {
00061 #endif
00062 
00063 /* Enumerate configuration options
00064 */
00065 
00066 /** Categories of Tidy configuration options
00067 */
00068 typedef enum
00069 {
00070   TidyMarkup,          /**< Markup options: (X)HTML version, etc */
00071   TidyDiagnostics,     /**< Diagnostics */
00072   TidyPrettyPrint,     /**< Output layout */
00073   TidyEncoding,        /**< Character encodings */
00074   TidyMiscellaneous    /**< File handling, message format, etc. */
00075 } TidyConfigCategory;
00076 
00077 
00078 /** Option IDs Used to get/set option values.
00079 */
00080 typedef enum
00081 {
00082   TidyUnknownOption,   /**< Unknown option! */
00083   TidyIndentSpaces,    /**< Indentation n spaces */
00084   TidyWrapLen,         /**< Wrap margin */
00085   TidyTabSize,         /**< Expand tabs to n spaces */
00086 
00087   TidyCharEncoding,    /**< In/out character encoding */
00088   TidyInCharEncoding,  /**< Input character encoding (if different) */
00089   TidyOutCharEncoding, /**< Output character encoding (if different) */    
00090   TidyNewline,         /**< Output line ending (default to platform) */
00091 
00092   TidyDoctypeMode,     /**< See doctype property */
00093   TidyDoctype,         /**< User specified doctype */
00094 
00095   TidyDuplicateAttrs,  /**< Keep first or last duplicate attribute */
00096   TidyAltText,         /**< Default text for alt attribute */
00097   
00098   /* obsolete */
00099   TidySlideStyle,      /**< Style sheet for slides: not used for anything yet */
00100 
00101   TidyErrFile,         /**< File name to write errors to */
00102   TidyOutFile,         /**< File name to write markup to */
00103   TidyWriteBack,       /**< If true then output tidied markup */
00104   TidyShowMarkup,      /**< If false, normal output is suppressed */
00105   TidyShowInfo,        /**< If true, info-level messages are shown */
00106   TidyShowWarnings,    /**< However errors are always shown */
00107   TidyQuiet,           /**< No 'Parsing X', guessed DTD or summary */
00108   TidyIndentContent,   /**< Indent content of appropriate tags */
00109                        /**< "auto" does text/block level content indentation */
00110   TidyCoerceEndTags,   /**< Coerce end tags from start tags where probably intended */
00111   TidyOmitOptionalTags,/**< Suppress optional start tags and end tags */
00112   TidyHideEndTags,     /**< Legacy name for TidyOmitOptionalTags */
00113   TidyXmlTags,         /**< Treat input as XML */
00114   TidyXmlOut,          /**< Create output as XML */
00115   TidyXhtmlOut,        /**< Output extensible HTML */
00116   TidyHtmlOut,         /**< Output plain HTML, even for XHTML input.
00117                            Yes means set explicitly. */
00118   TidyXmlDecl,         /**< Add <?xml?> for XML docs */
00119   TidyUpperCaseTags,   /**< Output tags in upper not lower case */
00120   TidyUpperCaseAttrs,  /**< Output attributes in upper not lower case */
00121   TidyMakeBare,        /**< Make bare HTML: remove Microsoft cruft */
00122   TidyMakeClean,       /**< Replace presentational clutter by style rules */
00123   TidyGDocClean,       /**< Clean up HTML exported from Google Docs */
00124   TidyLogicalEmphasis, /**< Replace i by em and b by strong */
00125   TidyDropPropAttrs,   /**< Discard proprietary attributes */
00126   TidyDropFontTags,    /**< Discard presentation tags */
00127   TidyDropEmptyElems,  /**< Discard empty elements */
00128   TidyDropEmptyParas,  /**< Discard empty p elements */
00129   TidyFixComments,     /**< Fix comments with adjacent hyphens */
00130   TidyBreakBeforeBR,   /**< Output newline before <br> or not? */
00131 
00132   /* obsolete */
00133   TidyBurstSlides,     /**< Create slides on each h2 element */
00134 
00135   TidyNumEntities,     /**< Use numeric entities */
00136   TidyQuoteMarks,      /**< Output " marks as &quot; */
00137   TidyQuoteNbsp,       /**< Output non-breaking space as entity */
00138   TidyQuoteAmpersand,  /**< Output naked ampersand as &amp; */
00139   TidyWrapAttVals,     /**< Wrap within attribute values */
00140   TidyWrapScriptlets,  /**< Wrap within JavaScript string literals */
00141   TidyWrapSection,     /**< Wrap within <![ ... ]> section tags */
00142   TidyWrapAsp,         /**< Wrap within ASP pseudo elements */
00143   TidyWrapJste,        /**< Wrap within JSTE pseudo elements */
00144   TidyWrapPhp,         /**< Wrap within PHP pseudo elements */
00145   TidyFixBackslash,    /**< Fix URLs by replacing \ with / */
00146   TidyIndentAttributes,/**< Newline+indent before each attribute */
00147   TidyXmlPIs,          /**< If set to yes PIs must end with ?> */
00148   TidyXmlSpace,        /**< If set to yes adds xml:space attr as needed */
00149   TidyEncloseBodyText, /**< If yes text at body is wrapped in P's */
00150   TidyEncloseBlockText,/**< If yes text in blocks is wrapped in P's */
00151   TidyKeepFileTimes,   /**< If yes last modied time is preserved */
00152   TidyWord2000,        /**< Draconian cleaning for Word2000 */
00153   TidyMark,            /**< Add meta element indicating tidied doc */
00154   TidyEmacs,           /**< If true format error output for GNU Emacs */
00155   TidyEmacsFile,       /**< Name of current Emacs file */
00156   TidyLiteralAttribs,  /**< If true attributes may use newlines */
00157   TidyBodyOnly,        /**< Output BODY content only */
00158   TidyFixUri,          /**< Applies URI encoding if necessary */
00159   TidyLowerLiterals,   /**< Folds known attribute values to lower case */
00160   TidyHideComments,    /**< Hides all (real) comments in output */
00161   TidyIndentCdata,     /**< Indent <!CDATA[ ... ]]> section */
00162   TidyForceOutput,     /**< Output document even if errors were found */
00163   TidyShowErrors,      /**< Number of errors to put out */
00164   TidyAsciiChars,      /**< Convert quotes and dashes to nearest ASCII char */
00165   TidyJoinClasses,     /**< Join multiple class attributes */
00166   TidyJoinStyles,      /**< Join multiple style attributes */
00167   TidyEscapeCdata,     /**< Replace <![CDATA[]]> sections with escaped text */
00168 
00169 #if SUPPORT_ASIAN_ENCODINGS
00170   TidyLanguage,        /**< Language property: not used for anything yet */
00171   TidyNCR,             /**< Allow numeric character references */
00172 #else
00173   TidyLanguageNotUsed,
00174   TidyNCRNotUsed,
00175 #endif
00176 #if SUPPORT_UTF16_ENCODINGS
00177   TidyOutputBOM,      /**< Output a Byte Order Mark (BOM) for UTF-16 encodings */
00178                       /**< auto: if input stream has BOM, we output a BOM */
00179 #else
00180   TidyOutputBOMNotUsed,
00181 #endif
00182 
00183   TidyReplaceColor,    /**< Replace hex color attribute values with names */
00184   TidyCSSPrefix,       /**< CSS class naming for -clean option */
00185 
00186   TidyInlineTags,      /**< Declared inline tags */
00187   TidyBlockTags,       /**< Declared block tags */
00188   TidyEmptyTags,       /**< Declared empty tags */
00189   TidyPreTags,         /**< Declared pre tags */
00190 
00191   TidyAccessibilityCheckLevel, /**< Accessibility check level 
00192                                    0 (old style), or 1, 2, 3 */
00193 
00194   TidyVertSpace,       /**< degree to which markup is spread out vertically */
00195 #if SUPPORT_ASIAN_ENCODINGS
00196   TidyPunctWrap,       /**< consider punctuation and breaking spaces for wrapping */
00197 #else
00198   TidyPunctWrapNotUsed,
00199 #endif
00200   TidyMergeEmphasis,       /**< Merge nested B and I elements */
00201   TidyMergeDivs,       /**< Merge multiple DIVs */
00202   TidyDecorateInferredUL,  /**< Mark inferred UL elements with no indent CSS */
00203   TidyPreserveEntities,    /**< Preserve entities */
00204   TidySortAttributes,      /**< Sort attributes */
00205   TidyMergeSpans,       /**< Merge multiple SPANs */
00206   TidyAnchorAsName,    /**< Define anchors as name attributes */
00207   N_TIDY_OPTIONS       /**< Must be last */
00208 } TidyOptionId;
00209 
00210 /** Option data types
00211 */
00212 typedef enum
00213 {
00214   TidyString,          /**< String */
00215   TidyInteger,         /**< Integer or enumeration */
00216   TidyBoolean          /**< Boolean flag */
00217 } TidyOptionType;
00218 
00219 
00220 /** AutoBool values used by ParseBool, ParseTriState, ParseIndent, ParseBOM
00221 */
00222 typedef enum
00223 {
00224    TidyNoState,     /**< maps to 'no' */
00225    TidyYesState,    /**< maps to 'yes' */
00226    TidyAutoState    /**< Automatic */
00227 } TidyTriState;
00228 
00229 /** TidyNewline option values to control output line endings.
00230 */
00231 typedef enum
00232 {
00233     TidyLF,         /**< Use Unix style: LF */
00234     TidyCRLF,       /**< Use DOS/Windows style: CR+LF */
00235     TidyCR          /**< Use Macintosh style: CR */
00236 } TidyLineEnding;
00237 
00238 
00239 /** Mode controlling treatment of doctype
00240 */
00241 typedef enum
00242 {
00243     TidyDoctypeHtml5,   /**< <!DOCTYPE html> */
00244     TidyDoctypeOmit,    /**< Omit DOCTYPE altogether */
00245     TidyDoctypeAuto,    /**< Keep DOCTYPE in input.  Set version to content */
00246     TidyDoctypeStrict,  /**< Convert document to HTML 4 strict content model */
00247     TidyDoctypeLoose,   /**< Convert document to HTML 4 transitional
00248                              content model */
00249     TidyDoctypeUser     /**< Set DOCTYPE FPI explicitly */
00250 } TidyDoctypeModes;
00251 
00252 /** Mode controlling treatment of duplicate Attributes
00253 */
00254 typedef enum
00255 {
00256     TidyKeepFirst,
00257     TidyKeepLast
00258 } TidyDupAttrModes;
00259 
00260 /** Mode controlling treatment of sorting attributes
00261 */
00262 typedef enum
00263 {
00264     TidySortAttrNone,
00265     TidySortAttrAlpha
00266 } TidyAttrSortStrategy;
00267 
00268 /* I/O and Message handling interface
00269 **
00270 ** By default, Tidy will define, create and use 
00271 ** instances of input and output handlers for 
00272 ** standard C buffered I/O (i.e. FILE* stdin,
00273 ** FILE* stdout and FILE* stderr for content
00274 ** input, content output and diagnostic output,
00275 ** respectively.  A FILE* cfgFile input handler
00276 ** will be used for config files.  Command line
00277 ** options will just be set directly.
00278 */
00279 
00280 /** Message severity level
00281 */
00282 typedef enum 
00283 {
00284   TidyInfo,             /**< Information about markup usage */
00285   TidyWarning,          /**< Warning message */
00286   TidyConfig,           /**< Configuration error */
00287   TidyAccess,           /**< Accessibility message */
00288   TidyError,            /**< Error message - output suppressed */
00289   TidyBadDocument,      /**< I/O or file system error */
00290   TidyFatal             /**< Crash! */
00291 } TidyReportLevel;
00292 
00293 
00294 /* Document tree traversal functions
00295 */
00296 
00297 /** Node types
00298 */
00299 typedef enum 
00300 {
00301   TidyNode_Root,        /**< Root */
00302   TidyNode_DocType,     /**< DOCTYPE */
00303   TidyNode_Comment,     /**< Comment */
00304   TidyNode_ProcIns,     /**< Processing Instruction */
00305   TidyNode_Text,        /**< Text */
00306   TidyNode_Start,       /**< Start Tag */
00307   TidyNode_End,         /**< End Tag */
00308   TidyNode_StartEnd,    /**< Start/End (empty) Tag */
00309   TidyNode_CDATA,       /**< Unparsed Text */
00310   TidyNode_Section,     /**< XML Section */
00311   TidyNode_Asp,         /**< ASP Source */
00312   TidyNode_Jste,        /**< JSTE Source */
00313   TidyNode_Php,         /**< PHP Source */
00314   TidyNode_XmlDecl      /**< XML Declaration */
00315 } TidyNodeType;
00316 
00317 
00318 /** Known HTML element types
00319 */
00320 typedef enum
00321 {
00322   TidyTag_UNKNOWN,  /**< Unknown tag! */
00323   TidyTag_A,        /**< A */
00324   TidyTag_ABBR,     /**< ABBR */
00325   TidyTag_ACRONYM,  /**< ACRONYM */
00326   TidyTag_ADDRESS,  /**< ADDRESS */
00327   TidyTag_ALIGN,    /**< ALIGN */
00328   TidyTag_APPLET,   /**< APPLET */
00329   TidyTag_AREA,     /**< AREA */
00330   TidyTag_B,        /**< B */
00331   TidyTag_BASE,     /**< BASE */
00332   TidyTag_BASEFONT, /**< BASEFONT */
00333   TidyTag_BDO,      /**< BDO */
00334   TidyTag_BGSOUND,  /**< BGSOUND */
00335   TidyTag_BIG,      /**< BIG */
00336   TidyTag_BLINK,    /**< BLINK */
00337   TidyTag_BLOCKQUOTE,   /**< BLOCKQUOTE */
00338   TidyTag_BODY,     /**< BODY */
00339   TidyTag_BR,       /**< BR */
00340   TidyTag_BUTTON,   /**< BUTTON */
00341   TidyTag_CAPTION,  /**< CAPTION */
00342   TidyTag_CENTER,   /**< CENTER */
00343   TidyTag_CITE,     /**< CITE */
00344   TidyTag_CODE,     /**< CODE */
00345   TidyTag_COL,      /**< COL */
00346   TidyTag_COLGROUP, /**< COLGROUP */
00347   TidyTag_COMMENT,  /**< COMMENT */
00348   TidyTag_DD,       /**< DD */
00349   TidyTag_DEL,      /**< DEL */
00350   TidyTag_DFN,      /**< DFN */
00351   TidyTag_DIR,      /**< DIR */
00352   TidyTag_DIV,      /**< DIF */
00353   TidyTag_DL,       /**< DL */
00354   TidyTag_DT,       /**< DT */
00355   TidyTag_EM,       /**< EM */
00356   TidyTag_EMBED,    /**< EMBED */
00357   TidyTag_FIELDSET, /**< FIELDSET */
00358   TidyTag_FONT,     /**< FONT */
00359   TidyTag_FORM,     /**< FORM */
00360   TidyTag_FRAME,    /**< FRAME */
00361   TidyTag_FRAMESET, /**< FRAMESET */
00362   TidyTag_H1,       /**< H1 */
00363   TidyTag_H2,       /**< H2 */
00364   TidyTag_H3,       /**< H3 */
00365   TidyTag_H4,       /**< H4 */
00366   TidyTag_H5,       /**< H5 */
00367   TidyTag_H6,       /**< H6 */
00368   TidyTag_HEAD,     /**< HEAD */
00369   TidyTag_HR,       /**< HR */
00370   TidyTag_HTML,     /**< HTML */
00371   TidyTag_I,        /**< I */
00372   TidyTag_IFRAME,   /**< IFRAME */
00373   TidyTag_ILAYER,   /**< ILAYER */
00374   TidyTag_IMG,      /**< IMG */
00375   TidyTag_INPUT,    /**< INPUT */
00376   TidyTag_INS,      /**< INS */
00377   TidyTag_ISINDEX,  /**< ISINDEX */
00378   TidyTag_KBD,      /**< KBD */
00379   TidyTag_KEYGEN,   /**< KEYGEN */
00380   TidyTag_LABEL,    /**< LABEL */
00381   TidyTag_LAYER,    /**< LAYER */
00382   TidyTag_LEGEND,   /**< LEGEND */
00383   TidyTag_LI,       /**< LI */
00384   TidyTag_LINK,     /**< LINK */
00385   TidyTag_LISTING,  /**< LISTING */
00386   TidyTag_MAP,      /**< MAP */
00387   TidyTag_MARQUEE,  /**< MARQUEE */
00388   TidyTag_MENU,     /**< MENU */
00389   TidyTag_META,     /**< META */
00390   TidyTag_MULTICOL, /**< MULTICOL */
00391   TidyTag_NOBR,     /**< NOBR */
00392   TidyTag_NOEMBED,  /**< NOEMBED */
00393   TidyTag_NOFRAMES, /**< NOFRAMES */
00394   TidyTag_NOLAYER,  /**< NOLAYER */
00395   TidyTag_NOSAVE,   /**< NOSAVE */
00396   TidyTag_NOSCRIPT, /**< NOSCRIPT */
00397   TidyTag_OBJECT,   /**< OBJECT */
00398   TidyTag_OL,       /**< OL */
00399   TidyTag_OPTGROUP, /**< OPTGROUP */
00400   TidyTag_OPTION,   /**< OPTION */
00401   TidyTag_P,        /**< P */
00402   TidyTag_PARAM,    /**< PARAM */
00403   TidyTag_PLAINTEXT,/**< PLAINTEXT */
00404   TidyTag_PRE,      /**< PRE */
00405   TidyTag_Q,        /**< Q */
00406   TidyTag_RB,       /**< RB */
00407   TidyTag_RBC,      /**< RBC */
00408   TidyTag_RP,       /**< RP */
00409   TidyTag_RT,       /**< RT */
00410   TidyTag_RTC,      /**< RTC */
00411   TidyTag_RUBY,     /**< RUBY */
00412   TidyTag_S,        /**< S */
00413   TidyTag_SAMP,     /**< SAMP */
00414   TidyTag_SCRIPT,   /**< SCRIPT */
00415   TidyTag_SELECT,   /**< SELECT */
00416   TidyTag_SERVER,   /**< SERVER */
00417   TidyTag_SERVLET,  /**< SERVLET */
00418   TidyTag_SMALL,    /**< SMALL */
00419   TidyTag_SPACER,   /**< SPACER */
00420   TidyTag_SPAN,     /**< SPAN */
00421   TidyTag_STRIKE,   /**< STRIKE */
00422   TidyTag_STRONG,   /**< STRONG */
00423   TidyTag_STYLE,    /**< STYLE */
00424   TidyTag_SUB,      /**< SUB */
00425   TidyTag_SUP,      /**< SUP */
00426   TidyTag_TABLE,    /**< TABLE */
00427   TidyTag_TBODY,    /**< TBODY */
00428   TidyTag_TD,       /**< TD */
00429   TidyTag_TEXTAREA, /**< TEXTAREA */
00430   TidyTag_TFOOT,    /**< TFOOT */
00431   TidyTag_TH,       /**< TH */
00432   TidyTag_THEAD,    /**< THEAD */
00433   TidyTag_TITLE,    /**< TITLE */
00434   TidyTag_TR,       /**< TR */
00435   TidyTag_TT,       /**< TT */
00436   TidyTag_U,        /**< U */
00437   TidyTag_UL,       /**< UL */
00438   TidyTag_VAR,      /**< VAR */
00439   TidyTag_WBR,      /**< WBR */
00440   TidyTag_XMP,      /**< XMP */
00441   TidyTag_NEXTID,   /**< NEXTID */
00442 
00443   TidyTag_ARTICLE,
00444   TidyTag_ASIDE,
00445   TidyTag_AUDIO,
00446   TidyTag_CANVAS,
00447   TidyTag_COMMAND,
00448   TidyTag_DATALIST,
00449   TidyTag_DETAILS,
00450   TidyTag_FIGCAPTION,
00451   TidyTag_FIGURE,
00452   TidyTag_FOOTER,
00453   TidyTag_HEADER,
00454   TidyTag_HGROUP,
00455   TidyTag_MARK,
00456   TidyTag_METER,
00457   TidyTag_NAV,
00458   TidyTag_OUTPUT,
00459   TidyTag_PROGRESS,
00460   TidyTag_SECTION,
00461   TidyTag_SOURCE,
00462   TidyTag_SUMMARY,
00463   TidyTag_TIME,
00464   TidyTag_TRACK,
00465   TidyTag_VIDEO,
00466 
00467   N_TIDY_TAGS       /**< Must be last */
00468 } TidyTagId;
00469 
00470 /* Attribute interrogation
00471 */
00472 
00473 /** Known HTML attributes
00474 */
00475 typedef enum
00476 {
00477   TidyAttr_UNKNOWN,           /**< UNKNOWN= */
00478   TidyAttr_ABBR,              /**< ABBR= */
00479   TidyAttr_ACCEPT,            /**< ACCEPT= */
00480   TidyAttr_ACCEPT_CHARSET,    /**< ACCEPT_CHARSET= */
00481   TidyAttr_ACCESSKEY,         /**< ACCESSKEY= */
00482   TidyAttr_ACTION,            /**< ACTION= */
00483   TidyAttr_ADD_DATE,          /**< ADD_DATE= */
00484   TidyAttr_ALIGN,             /**< ALIGN= */
00485   TidyAttr_ALINK,             /**< ALINK= */
00486   TidyAttr_ALT,               /**< ALT= */
00487   TidyAttr_ARCHIVE,           /**< ARCHIVE= */
00488   TidyAttr_AXIS,              /**< AXIS= */
00489   TidyAttr_BACKGROUND,        /**< BACKGROUND= */
00490   TidyAttr_BGCOLOR,           /**< BGCOLOR= */
00491   TidyAttr_BGPROPERTIES,      /**< BGPROPERTIES= */
00492   TidyAttr_BORDER,            /**< BORDER= */
00493   TidyAttr_BORDERCOLOR,       /**< BORDERCOLOR= */
00494   TidyAttr_BOTTOMMARGIN,      /**< BOTTOMMARGIN= */
00495   TidyAttr_CELLPADDING,       /**< CELLPADDING= */
00496   TidyAttr_CELLSPACING,       /**< CELLSPACING= */
00497   TidyAttr_CHAR,              /**< CHAR= */
00498   TidyAttr_CHAROFF,           /**< CHAROFF= */
00499   TidyAttr_CHARSET,           /**< CHARSET= */
00500   TidyAttr_CHECKED,           /**< CHECKED= */
00501   TidyAttr_CITE,              /**< CITE= */
00502   TidyAttr_CLASS,             /**< CLASS= */
00503   TidyAttr_CLASSID,           /**< CLASSID= */
00504   TidyAttr_CLEAR,             /**< CLEAR= */
00505   TidyAttr_CODE,              /**< CODE= */
00506   TidyAttr_CODEBASE,          /**< CODEBASE= */
00507   TidyAttr_CODETYPE,          /**< CODETYPE= */
00508   TidyAttr_COLOR,             /**< COLOR= */
00509   TidyAttr_COLS,              /**< COLS= */
00510   TidyAttr_COLSPAN,           /**< COLSPAN= */
00511   TidyAttr_COMPACT,           /**< COMPACT= */
00512   TidyAttr_CONTENT,           /**< CONTENT= */
00513   TidyAttr_COORDS,            /**< COORDS= */
00514   TidyAttr_DATA,              /**< DATA= */
00515   TidyAttr_DATAFLD,           /**< DATAFLD= */
00516   TidyAttr_DATAFORMATAS,      /**< DATAFORMATAS= */
00517   TidyAttr_DATAPAGESIZE,      /**< DATAPAGESIZE= */
00518   TidyAttr_DATASRC,           /**< DATASRC= */
00519   TidyAttr_DATETIME,          /**< DATETIME= */
00520   TidyAttr_DECLARE,           /**< DECLARE= */
00521   TidyAttr_DEFER,             /**< DEFER= */
00522   TidyAttr_DIR,               /**< DIR= */
00523   TidyAttr_DISABLED,          /**< DISABLED= */
00524   TidyAttr_ENCODING,          /**< ENCODING= */
00525   TidyAttr_ENCTYPE,           /**< ENCTYPE= */
00526   TidyAttr_FACE,              /**< FACE= */
00527   TidyAttr_FOR,               /**< FOR= */
00528   TidyAttr_FRAME,             /**< FRAME= */
00529   TidyAttr_FRAMEBORDER,       /**< FRAMEBORDER= */
00530   TidyAttr_FRAMESPACING,      /**< FRAMESPACING= */
00531   TidyAttr_GRIDX,             /**< GRIDX= */
00532   TidyAttr_GRIDY,             /**< GRIDY= */
00533   TidyAttr_HEADERS,           /**< HEADERS= */
00534   TidyAttr_HEIGHT,            /**< HEIGHT= */
00535   TidyAttr_HREF,              /**< HREF= */
00536   TidyAttr_HREFLANG,          /**< HREFLANG= */
00537   TidyAttr_HSPACE,            /**< HSPACE= */
00538   TidyAttr_HTTP_EQUIV,        /**< HTTP_EQUIV= */
00539   TidyAttr_ID,                /**< ID= */
00540   TidyAttr_ISMAP,             /**< ISMAP= */
00541   TidyAttr_ITEMPROP,          /**< ITEMPROP= */
00542   TidyAttr_LABEL,             /**< LABEL= */
00543   TidyAttr_LANG,              /**< LANG= */
00544   TidyAttr_LANGUAGE,          /**< LANGUAGE= */
00545   TidyAttr_LAST_MODIFIED,     /**< LAST_MODIFIED= */
00546   TidyAttr_LAST_VISIT,        /**< LAST_VISIT= */
00547   TidyAttr_LEFTMARGIN,        /**< LEFTMARGIN= */
00548   TidyAttr_LINK,              /**< LINK= */
00549   TidyAttr_LONGDESC,          /**< LONGDESC= */
00550   TidyAttr_LOWSRC,            /**< LOWSRC= */
00551   TidyAttr_MARGINHEIGHT,      /**< MARGINHEIGHT= */
00552   TidyAttr_MARGINWIDTH,       /**< MARGINWIDTH= */
00553   TidyAttr_MAXLENGTH,         /**< MAXLENGTH= */
00554   TidyAttr_MEDIA,             /**< MEDIA= */
00555   TidyAttr_METHOD,            /**< METHOD= */
00556   TidyAttr_MULTIPLE,          /**< MULTIPLE= */
00557   TidyAttr_NAME,              /**< NAME= */
00558   TidyAttr_NOHREF,            /**< NOHREF= */
00559   TidyAttr_NORESIZE,          /**< NORESIZE= */
00560   TidyAttr_NOSHADE,           /**< NOSHADE= */
00561   TidyAttr_NOWRAP,            /**< NOWRAP= */
00562   TidyAttr_OBJECT,            /**< OBJECT= */
00563   TidyAttr_OnAFTERUPDATE,     /**< OnAFTERUPDATE= */
00564   TidyAttr_OnBEFOREUNLOAD,    /**< OnBEFOREUNLOAD= */
00565   TidyAttr_OnBEFOREUPDATE,    /**< OnBEFOREUPDATE= */
00566   TidyAttr_OnBLUR,            /**< OnBLUR= */
00567   TidyAttr_OnCHANGE,          /**< OnCHANGE= */
00568   TidyAttr_OnCLICK,           /**< OnCLICK= */
00569   TidyAttr_OnDATAAVAILABLE,   /**< OnDATAAVAILABLE= */
00570   TidyAttr_OnDATASETCHANGED,  /**< OnDATASETCHANGED= */
00571   TidyAttr_OnDATASETCOMPLETE, /**< OnDATASETCOMPLETE= */
00572   TidyAttr_OnDBLCLICK,        /**< OnDBLCLICK= */
00573   TidyAttr_OnERRORUPDATE,     /**< OnERRORUPDATE= */
00574   TidyAttr_OnFOCUS,           /**< OnFOCUS= */
00575   TidyAttr_OnKEYDOWN,         /**< OnKEYDOWN= */
00576   TidyAttr_OnKEYPRESS,        /**< OnKEYPRESS= */
00577   TidyAttr_OnKEYUP,           /**< OnKEYUP= */
00578   TidyAttr_OnLOAD,            /**< OnLOAD= */
00579   TidyAttr_OnMOUSEDOWN,       /**< OnMOUSEDOWN= */
00580   TidyAttr_OnMOUSEMOVE,       /**< OnMOUSEMOVE= */
00581   TidyAttr_OnMOUSEOUT,        /**< OnMOUSEOUT= */
00582   TidyAttr_OnMOUSEOVER,       /**< OnMOUSEOVER= */
00583   TidyAttr_OnMOUSEUP,         /**< OnMOUSEUP= */
00584   TidyAttr_OnRESET,           /**< OnRESET= */
00585   TidyAttr_OnROWENTER,        /**< OnROWENTER= */
00586   TidyAttr_OnROWEXIT,         /**< OnROWEXIT= */
00587   TidyAttr_OnSELECT,          /**< OnSELECT= */
00588   TidyAttr_OnSUBMIT,          /**< OnSUBMIT= */
00589   TidyAttr_OnUNLOAD,          /**< OnUNLOAD= */
00590   TidyAttr_PROFILE,           /**< PROFILE= */
00591   TidyAttr_PROMPT,            /**< PROMPT= */
00592   TidyAttr_RBSPAN,            /**< RBSPAN= */
00593   TidyAttr_READONLY,          /**< READONLY= */
00594   TidyAttr_REL,               /**< REL= */
00595   TidyAttr_REV,               /**< REV= */
00596   TidyAttr_RIGHTMARGIN,       /**< RIGHTMARGIN= */
00597   TidyAttr_ROWS,              /**< ROWS= */
00598   TidyAttr_ROWSPAN,           /**< ROWSPAN= */
00599   TidyAttr_RULES,             /**< RULES= */
00600   TidyAttr_SCHEME,            /**< SCHEME= */
00601   TidyAttr_SCOPE,             /**< SCOPE= */
00602   TidyAttr_SCROLLING,         /**< SCROLLING= */
00603   TidyAttr_SELECTED,          /**< SELECTED= */
00604   TidyAttr_SHAPE,             /**< SHAPE= */
00605   TidyAttr_SHOWGRID,          /**< SHOWGRID= */
00606   TidyAttr_SHOWGRIDX,         /**< SHOWGRIDX= */
00607   TidyAttr_SHOWGRIDY,         /**< SHOWGRIDY= */
00608   TidyAttr_SIZE,              /**< SIZE= */
00609   TidyAttr_SPAN,              /**< SPAN= */
00610   TidyAttr_SRC,               /**< SRC= */
00611   TidyAttr_STANDBY,           /**< STANDBY= */
00612   TidyAttr_START,             /**< START= */
00613   TidyAttr_STYLE,             /**< STYLE= */
00614   TidyAttr_SUMMARY,           /**< SUMMARY= */
00615   TidyAttr_TABINDEX,          /**< TABINDEX= */
00616   TidyAttr_TARGET,            /**< TARGET= */
00617   TidyAttr_TEXT,              /**< TEXT= */
00618   TidyAttr_TITLE,             /**< TITLE= */
00619   TidyAttr_TOPMARGIN,         /**< TOPMARGIN= */
00620   TidyAttr_TYPE,              /**< TYPE= */
00621   TidyAttr_USEMAP,            /**< USEMAP= */
00622   TidyAttr_VALIGN,            /**< VALIGN= */
00623   TidyAttr_VALUE,             /**< VALUE= */
00624   TidyAttr_VALUETYPE,         /**< VALUETYPE= */
00625   TidyAttr_VERSION,           /**< VERSION= */
00626   TidyAttr_VLINK,             /**< VLINK= */
00627   TidyAttr_VSPACE,            /**< VSPACE= */
00628   TidyAttr_WIDTH,             /**< WIDTH= */
00629   TidyAttr_WRAP,              /**< WRAP= */
00630   TidyAttr_XML_LANG,          /**< XML_LANG= */
00631   TidyAttr_XML_SPACE,         /**< XML_SPACE= */
00632   TidyAttr_XMLNS,             /**< XMLNS= */
00633 
00634   TidyAttr_EVENT,             /**< EVENT= */
00635   TidyAttr_METHODS,           /**< METHODS= */
00636   TidyAttr_N,                 /**< N= */
00637   TidyAttr_SDAFORM,           /**< SDAFORM= */
00638   TidyAttr_SDAPREF,           /**< SDAPREF= */
00639   TidyAttr_SDASUFF,           /**< SDASUFF= */
00640   TidyAttr_URN,               /**< URN= */
00641 
00642   TidyAttr_ASYNC,
00643   TidyAttr_AUTOCOMPLETE,
00644   TidyAttr_AUTOFOCUS,
00645   TidyAttr_AUTOPLAY,
00646   TidyAttr_CHALLENGE,
00647   TidyAttr_CONTENTEDITABLE,
00648   TidyAttr_CONTEXTMENU,
00649   TidyAttr_CONTROLS,
00650   TidyAttr_DEFAULT,
00651   TidyAttr_DIRNAME,
00652   TidyAttr_DRAGGABLE,
00653   TidyAttr_DROPZONE,
00654   TidyAttr_FORM,
00655   TidyAttr_FORMACTION,
00656   TidyAttr_FORMENCTYPE,
00657   TidyAttr_FORMMETHOD,
00658   TidyAttr_FORMNOVALIDATE,
00659   TidyAttr_FORMTARGET,
00660   TidyAttr_HIDDEN,
00661   TidyAttr_HIGH,
00662   TidyAttr_ICON,
00663   TidyAttr_KEYTYPE,
00664   TidyAttr_KIND,
00665   TidyAttr_LIST,
00666   TidyAttr_LOOP,
00667   TidyAttr_LOW,
00668   TidyAttr_MANIFEST,
00669   TidyAttr_MAX,
00670   TidyAttr_MEDIAGROUP,
00671   TidyAttr_MIN,
00672   TidyAttr_NOVALIDATE,
00673   TidyAttr_OPEN,
00674   TidyAttr_OPTIMUM,
00675   TidyAttr_OnABORT,
00676   TidyAttr_OnAFTERPRINT,
00677   TidyAttr_OnBEFOREPRINT,
00678   TidyAttr_OnCANPLAY,
00679   TidyAttr_OnCANPLAYTHROUGH,
00680   TidyAttr_OnCONTEXTMENU,
00681   TidyAttr_OnCUECHANGE,
00682   TidyAttr_OnDRAG,
00683   TidyAttr_OnDRAGEND,
00684   TidyAttr_OnDRAGENTER,
00685   TidyAttr_OnDRAGLEAVE,
00686   TidyAttr_OnDRAGOVER,
00687   TidyAttr_OnDRAGSTART,
00688   TidyAttr_OnDROP,
00689   TidyAttr_OnDURATIONCHANGE,
00690   TidyAttr_OnEMPTIED,
00691   TidyAttr_OnENDED,
00692   TidyAttr_OnERROR,
00693   TidyAttr_OnHASHCHANGE,
00694   TidyAttr_OnINPUT,
00695   TidyAttr_OnINVALID,
00696   TidyAttr_OnLOADEDDATA,
00697   TidyAttr_OnLOADEDMETADATA,
00698   TidyAttr_OnLOADSTART,
00699   TidyAttr_OnMESSAGE,
00700   TidyAttr_OnMOUSEWHEEL,
00701   TidyAttr_OnOFFLINE,
00702   TidyAttr_OnONLINE,
00703   TidyAttr_OnPAGEHIDE,
00704   TidyAttr_OnPAGESHOW,
00705   TidyAttr_OnPAUSE,
00706   TidyAttr_OnPLAY,
00707   TidyAttr_OnPLAYING,
00708   TidyAttr_OnPOPSTATE,
00709   TidyAttr_OnPROGRESS,
00710   TidyAttr_OnRATECHANGE,
00711   TidyAttr_OnREADYSTATECHANGE,
00712   TidyAttr_OnREDO,
00713   TidyAttr_OnRESIZE,
00714   TidyAttr_OnSCROLL,
00715   TidyAttr_OnSEEKED,
00716   TidyAttr_OnSEEKING,
00717   TidyAttr_OnSHOW,
00718   TidyAttr_OnSTALLED,
00719   TidyAttr_OnSTORAGE,
00720   TidyAttr_OnSUSPEND,
00721   TidyAttr_OnTIMEUPDATE,
00722   TidyAttr_OnUNDO,
00723   TidyAttr_OnVOLUMECHANGE,
00724   TidyAttr_OnWAITING,
00725   TidyAttr_PATTERN,
00726   TidyAttr_PLACEHOLDER,
00727   TidyAttr_POSTER,
00728   TidyAttr_PRELOAD,
00729   TidyAttr_PUBDATE,
00730   TidyAttr_RADIOGROUP,
00731   TidyAttr_REQUIRED,
00732   TidyAttr_REVERSED,
00733   TidyAttr_SANDBOX,
00734   TidyAttr_SCOPED,
00735   TidyAttr_SEAMLESS,
00736   TidyAttr_SIZES,
00737   TidyAttr_SPELLCHECK,
00738   TidyAttr_SRCDOC,
00739   TidyAttr_SRCLANG,
00740   TidyAttr_STEP,
00741 
00742 
00743   N_TIDY_ATTRIBS              /**< Must be last */
00744 } TidyAttrId;
00745 
00746 #ifdef __cplusplus
00747 }  /* extern "C" */
00748 #endif
00749 #endif /* __TIDYENUM_H__ */