OSDN Git Service

Initial commit
[wordring-tm/wordring-tm.git] / third_party / tidy-html5-master / include / tidyenum.h
1 #ifndef __TIDYENUM_H__
2 #define __TIDYENUM_H__
3
4 /* @file tidyenum.h -- Split public enums into separate header
5
6   Simplifies enum re-use in various wrappers.  e.g. SWIG
7   generated wrappers and COM IDL files.
8
9   Copyright (c) 1998-2008 World Wide Web Consortium
10   (Massachusetts Institute of Technology, European Research
11   Consortium for Informatics and Mathematics, Keio University).
12   All Rights Reserved.
13
14   Contributing Author(s):
15
16      Dave Raggett <dsr@w3.org>
17
18   The contributing author(s) would like to thank all those who
19   helped with testing, bug fixes and suggestions for improvements.
20   This wouldn't have been possible without your help.
21
22   COPYRIGHT NOTICE:
23
24   This software and documentation is provided "as is," and
25   the copyright holders and contributing author(s) make no
26   representations or warranties, express or implied, including
27   but not limited to, warranties of merchantability or fitness
28   for any particular purpose or that the use of the software or
29   documentation will not infringe any third party patents,
30   copyrights, trademarks or other rights.
31
32   The copyright holders and contributing author(s) will not be held
33   liable for any direct, indirect, special or consequential damages
34   arising out of any use of the software or documentation, even if
35   advised of the possibility of such damage.
36
37   Permission is hereby granted to use, copy, modify, and distribute
38   this source code, or portions hereof, documentation and executables,
39   for any purpose, without fee, subject to the following restrictions:
40
41   1. The origin of this source code must not be misrepresented.
42   2. Altered versions must be plainly marked as such and must
43      not be misrepresented as being the original source.
44   3. This Copyright notice may not be removed or altered from any
45      source or altered source distribution.
46
47   The copyright holders and contributing author(s) specifically
48   permit, without fee, and encourage the use of this source code
49   as a component for supporting the Hypertext Markup Language in
50   commercial products. If you use this source code in a product,
51   acknowledgment is not required but would be appreciated.
52
53
54   Created 2001-05-20 by Charles Reitzel
55   Updated 2002-07-01 by Charles Reitzel - 1st Implementation
56
57 */
58
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62
63 /* Enumerate configuration options
64 */
65
66 /** Categories of Tidy configuration options
67 */
68 typedef enum
69 {
70   TidyMarkup,          /**< Markup options: (X)HTML version, etc */
71   TidyDiagnostics,     /**< Diagnostics */
72   TidyPrettyPrint,     /**< Output layout */
73   TidyEncoding,        /**< Character encodings */
74   TidyMiscellaneous    /**< File handling, message format, etc. */
75 } TidyConfigCategory;
76
77
78 /** Option IDs Used to get/set option values.
79 */
80 typedef enum
81 {
82   TidyUnknownOption,   /**< Unknown option! */
83   TidyIndentSpaces,    /**< Indentation n spaces */
84   TidyWrapLen,         /**< Wrap margin */
85   TidyTabSize,         /**< Expand tabs to n spaces */
86
87   TidyCharEncoding,    /**< In/out character encoding */
88   TidyInCharEncoding,  /**< Input character encoding (if different) */
89   TidyOutCharEncoding, /**< Output character encoding (if different) */
90   TidyNewline,         /**< Output line ending (default to platform) */
91
92   TidyDoctypeMode,     /**< See doctype property */
93   TidyDoctype,         /**< User specified doctype */
94
95   TidyDuplicateAttrs,  /**< Keep first or last duplicate attribute */
96   TidyAltText,         /**< Default text for alt attribute */
97
98   /* obsolete */
99   TidySlideStyle,      /**< Style sheet for slides: not used for anything yet */
100
101   TidyErrFile,         /**< File name to write errors to */
102   TidyOutFile,         /**< File name to write markup to */
103   TidyWriteBack,       /**< If true then output tidied markup */
104   TidyShowMarkup,      /**< If false, normal output is suppressed */
105   TidyShowInfo,        /**< If true, info-level messages are shown */
106   TidyShowWarnings,    /**< However errors are always shown */
107   TidyQuiet,           /**< No 'Parsing X', guessed DTD or summary */
108   TidyIndentContent,   /**< Indent content of appropriate tags */
109                        /**< "auto" does text/block level content indentation */
110   TidyCoerceEndTags,   /**< Coerce end tags from start tags where probably intended */
111   TidyOmitOptionalTags,/**< Suppress optional start tags and end tags */
112   TidyHideEndTags,     /**< Legacy name for TidyOmitOptionalTags */
113   TidyXmlTags,         /**< Treat input as XML */
114   TidyXmlOut,          /**< Create output as XML */
115   TidyXhtmlOut,        /**< Output extensible HTML */
116   TidyHtmlOut,         /**< Output plain HTML, even for XHTML input.
117                            Yes means set explicitly. */
118   TidyXmlDecl,         /**< Add <?xml?> for XML docs */
119   TidyUpperCaseTags,   /**< Output tags in upper not lower case */
120   TidyUpperCaseAttrs,  /**< Output attributes in upper not lower case */
121   TidyMakeBare,        /**< Make bare HTML: remove Microsoft cruft */
122   TidyMakeClean,       /**< Replace presentational clutter by style rules */
123   TidyGDocClean,       /**< Clean up HTML exported from Google Docs */
124   TidyLogicalEmphasis, /**< Replace i by em and b by strong */
125   TidyDropPropAttrs,   /**< Discard proprietary attributes */
126   TidyDropFontTags,    /**< Discard presentation tags */
127   TidyDropEmptyElems,  /**< Discard empty elements */
128   TidyDropEmptyParas,  /**< Discard empty p elements */
129   TidyFixComments,     /**< Fix comments with adjacent hyphens */
130   TidyBreakBeforeBR,   /**< Output newline before <br> or not? */
131
132   /* obsolete */
133   TidyBurstSlides,     /**< Create slides on each h2 element */
134
135   TidyNumEntities,     /**< Use numeric entities */
136   TidyQuoteMarks,      /**< Output " marks as &quot; */
137   TidyQuoteNbsp,       /**< Output non-breaking space as entity */
138   TidyQuoteAmpersand,  /**< Output naked ampersand as &amp; */
139   TidyWrapAttVals,     /**< Wrap within attribute values */
140   TidyWrapScriptlets,  /**< Wrap within JavaScript string literals */
141   TidyWrapSection,     /**< Wrap within <![ ... ]> section tags */
142   TidyWrapAsp,         /**< Wrap within ASP pseudo elements */
143   TidyWrapJste,        /**< Wrap within JSTE pseudo elements */
144   TidyWrapPhp,         /**< Wrap within PHP pseudo elements */
145   TidyFixBackslash,    /**< Fix URLs by replacing \ with / */
146   TidyIndentAttributes,/**< Newline+indent before each attribute */
147   TidyXmlPIs,          /**< If set to yes PIs must end with ?> */
148   TidyXmlSpace,        /**< If set to yes adds xml:space attr as needed */
149   TidyEncloseBodyText, /**< If yes text at body is wrapped in P's */
150   TidyEncloseBlockText,/**< If yes text in blocks is wrapped in P's */
151   TidyKeepFileTimes,   /**< If yes last modied time is preserved */
152   TidyWord2000,        /**< Draconian cleaning for Word2000 */
153   TidyMark,            /**< Add meta element indicating tidied doc */
154   TidyEmacs,           /**< If true format error output for GNU Emacs */
155   TidyEmacsFile,       /**< Name of current Emacs file */
156   TidyLiteralAttribs,  /**< If true attributes may use newlines */
157   TidyBodyOnly,        /**< Output BODY content only */
158   TidyFixUri,          /**< Applies URI encoding if necessary */
159   TidyLowerLiterals,   /**< Folds known attribute values to lower case */
160   TidyHideComments,    /**< Hides all (real) comments in output */
161   TidyIndentCdata,     /**< Indent <!CDATA[ ... ]]> section */
162   TidyForceOutput,     /**< Output document even if errors were found */
163   TidyShowErrors,      /**< Number of errors to put out */
164   TidyAsciiChars,      /**< Convert quotes and dashes to nearest ASCII char */
165   TidyJoinClasses,     /**< Join multiple class attributes */
166   TidyJoinStyles,      /**< Join multiple style attributes */
167   TidyEscapeCdata,     /**< Replace <![CDATA[]]> sections with escaped text */
168
169 #if SUPPORT_ASIAN_ENCODINGS
170   TidyLanguage,        /**< Language property: not used for anything yet */
171   TidyNCR,             /**< Allow numeric character references */
172 #else
173   TidyLanguageNotUsed,
174   TidyNCRNotUsed,
175 #endif
176 #if SUPPORT_UTF16_ENCODINGS
177   TidyOutputBOM,      /**< Output a Byte Order Mark (BOM) for UTF-16 encodings */
178                       /**< auto: if input stream has BOM, we output a BOM */
179 #else
180   TidyOutputBOMNotUsed,
181 #endif
182
183   TidyReplaceColor,    /**< Replace hex color attribute values with names */
184   TidyCSSPrefix,       /**< CSS class naming for -clean option */
185
186   TidyInlineTags,      /**< Declared inline tags */
187   TidyBlockTags,       /**< Declared block tags */
188   TidyEmptyTags,       /**< Declared empty tags */
189   TidyPreTags,         /**< Declared pre tags */
190
191   TidyAccessibilityCheckLevel, /**< Accessibility check level
192                                    0 (old style), or 1, 2, 3 */
193
194   TidyVertSpace,       /**< degree to which markup is spread out vertically */
195 #if SUPPORT_ASIAN_ENCODINGS
196   TidyPunctWrap,       /**< consider punctuation and breaking spaces for wrapping */
197 #else
198   TidyPunctWrapNotUsed,
199 #endif
200   TidyMergeEmphasis,       /**< Merge nested B and I elements */
201   TidyMergeDivs,       /**< Merge multiple DIVs */
202   TidyDecorateInferredUL,  /**< Mark inferred UL elements with no indent CSS */
203   TidyPreserveEntities,    /**< Preserve entities */
204   TidySortAttributes,      /**< Sort attributes */
205   TidyMergeSpans,       /**< Merge multiple SPANs */
206   TidyAnchorAsName,    /**< Define anchors as name attributes */
207   N_TIDY_OPTIONS       /**< Must be last */
208 } TidyOptionId;
209
210 /** Option data types
211 */
212 typedef enum
213 {
214   TidyString,          /**< String */
215   TidyInteger,         /**< Integer or enumeration */
216   TidyBoolean          /**< Boolean flag */
217 } TidyOptionType;
218
219
220 /** AutoBool values used by ParseBool, ParseTriState, ParseIndent, ParseBOM
221 */
222 typedef enum
223 {
224    TidyNoState,     /**< maps to 'no' */
225    TidyYesState,    /**< maps to 'yes' */
226    TidyAutoState    /**< Automatic */
227 } TidyTriState;
228
229 /** TidyNewline option values to control output line endings.
230 */
231 typedef enum
232 {
233     TidyLF,         /**< Use Unix style: LF */
234     TidyCRLF,       /**< Use DOS/Windows style: CR+LF */
235     TidyCR          /**< Use Macintosh style: CR */
236 } TidyLineEnding;
237
238
239 /** Mode controlling treatment of doctype
240 */
241 typedef enum
242 {
243     TidyDoctypeHtml5,   /**< <!DOCTYPE html> */
244     TidyDoctypeOmit,    /**< Omit DOCTYPE altogether */
245     TidyDoctypeAuto,    /**< Keep DOCTYPE in input.  Set version to content */
246     TidyDoctypeStrict,  /**< Convert document to HTML 4 strict content model */
247     TidyDoctypeLoose,   /**< Convert document to HTML 4 transitional
248                              content model */
249     TidyDoctypeUser     /**< Set DOCTYPE FPI explicitly */
250 } TidyDoctypeModes;
251
252 /** Mode controlling treatment of duplicate Attributes
253 */
254 typedef enum
255 {
256     TidyKeepFirst,
257     TidyKeepLast
258 } TidyDupAttrModes;
259
260 /** Mode controlling treatment of sorting attributes
261 */
262 typedef enum
263 {
264     TidySortAttrNone,
265     TidySortAttrAlpha
266 } TidyAttrSortStrategy;
267
268 /* I/O and Message handling interface
269 **
270 ** By default, Tidy will define, create and use
271 ** instances of input and output handlers for
272 ** standard C buffered I/O (i.e. FILE* stdin,
273 ** FILE* stdout and FILE* stderr for content
274 ** input, content output and diagnostic output,
275 ** respectively.  A FILE* cfgFile input handler
276 ** will be used for config files.  Command line
277 ** options will just be set directly.
278 */
279
280 /** Message severity level
281 */
282 typedef enum
283 {
284   TidyInfo,             /**< Information about markup usage */
285   TidyWarning,          /**< Warning message */
286   TidyConfig,           /**< Configuration error */
287   TidyAccess,           /**< Accessibility message */
288   TidyError,            /**< Error message - output suppressed */
289   TidyBadDocument,      /**< I/O or file system error */
290   TidyFatal             /**< Crash! */
291 } TidyReportLevel;
292
293
294 /* Document tree traversal functions
295 */
296
297 /** Node types
298 */
299 typedef enum
300 {
301   TidyNode_Root,        /**< Root */
302   TidyNode_DocType,     /**< DOCTYPE */
303   TidyNode_Comment,     /**< Comment */
304   TidyNode_ProcIns,     /**< Processing Instruction */
305   TidyNode_Text,        /**< Text */
306   TidyNode_Start,       /**< Start Tag */
307   TidyNode_End,         /**< End Tag */
308   TidyNode_StartEnd,    /**< Start/End (empty) Tag */
309   TidyNode_CDATA,       /**< Unparsed Text */
310   TidyNode_Section,     /**< XML Section */
311   TidyNode_Asp,         /**< ASP Source */
312   TidyNode_Jste,        /**< JSTE Source */
313   TidyNode_Php,         /**< PHP Source */
314   TidyNode_XmlDecl      /**< XML Declaration */
315 } TidyNodeType;
316
317
318 /** Known HTML element types
319 */
320 typedef enum
321 {
322   TidyTag_UNKNOWN,  /**< Unknown tag! */
323   TidyTag_A,        /**< A */
324   TidyTag_ABBR,     /**< ABBR */
325   TidyTag_ACRONYM,  /**< ACRONYM */
326   TidyTag_ADDRESS,  /**< ADDRESS */
327   TidyTag_ALIGN,    /**< ALIGN */
328   TidyTag_APPLET,   /**< APPLET */
329   TidyTag_AREA,     /**< AREA */
330   TidyTag_B,        /**< B */
331   TidyTag_BASE,     /**< BASE */
332   TidyTag_BASEFONT, /**< BASEFONT */
333   TidyTag_BDO,      /**< BDO */
334   TidyTag_BGSOUND,  /**< BGSOUND */
335   TidyTag_BIG,      /**< BIG */
336   TidyTag_BLINK,    /**< BLINK */
337   TidyTag_BLOCKQUOTE,   /**< BLOCKQUOTE */
338   TidyTag_BODY,     /**< BODY */
339   TidyTag_BR,       /**< BR */
340   TidyTag_BUTTON,   /**< BUTTON */
341   TidyTag_CAPTION,  /**< CAPTION */
342   TidyTag_CENTER,   /**< CENTER */
343   TidyTag_CITE,     /**< CITE */
344   TidyTag_CODE,     /**< CODE */
345   TidyTag_COL,      /**< COL */
346   TidyTag_COLGROUP, /**< COLGROUP */
347   TidyTag_COMMENT,  /**< COMMENT */
348   TidyTag_DD,       /**< DD */
349   TidyTag_DEL,      /**< DEL */
350   TidyTag_DFN,      /**< DFN */
351   TidyTag_DIR,      /**< DIR */
352   TidyTag_DIV,      /**< DIF */
353   TidyTag_DL,       /**< DL */
354   TidyTag_DT,       /**< DT */
355   TidyTag_EM,       /**< EM */
356   TidyTag_EMBED,    /**< EMBED */
357   TidyTag_FIELDSET, /**< FIELDSET */
358   TidyTag_FONT,     /**< FONT */
359   TidyTag_FORM,     /**< FORM */
360   TidyTag_FRAME,    /**< FRAME */
361   TidyTag_FRAMESET, /**< FRAMESET */
362   TidyTag_H1,       /**< H1 */
363   TidyTag_H2,       /**< H2 */
364   TidyTag_H3,       /**< H3 */
365   TidyTag_H4,       /**< H4 */
366   TidyTag_H5,       /**< H5 */
367   TidyTag_H6,       /**< H6 */
368   TidyTag_HEAD,     /**< HEAD */
369   TidyTag_HR,       /**< HR */
370   TidyTag_HTML,     /**< HTML */
371   TidyTag_I,        /**< I */
372   TidyTag_IFRAME,   /**< IFRAME */
373   TidyTag_ILAYER,   /**< ILAYER */
374   TidyTag_IMG,      /**< IMG */
375   TidyTag_INPUT,    /**< INPUT */
376   TidyTag_INS,      /**< INS */
377   TidyTag_ISINDEX,  /**< ISINDEX */
378   TidyTag_KBD,      /**< KBD */
379   TidyTag_KEYGEN,   /**< KEYGEN */
380   TidyTag_LABEL,    /**< LABEL */
381   TidyTag_LAYER,    /**< LAYER */
382   TidyTag_LEGEND,   /**< LEGEND */
383   TidyTag_LI,       /**< LI */
384   TidyTag_LINK,     /**< LINK */
385   TidyTag_LISTING,  /**< LISTING */
386   TidyTag_MAP,      /**< MAP */
387   TidyTag_MATHML,   /**< MATH  (HTML5) [i_a]2 MathML embedded in [X]HTML */
388   TidyTag_MARQUEE,  /**< MARQUEE */
389   TidyTag_MENU,     /**< MENU */
390   TidyTag_META,     /**< META */
391   TidyTag_MULTICOL, /**< MULTICOL */
392   TidyTag_NOBR,     /**< NOBR */
393   TidyTag_NOEMBED,  /**< NOEMBED */
394   TidyTag_NOFRAMES, /**< NOFRAMES */
395   TidyTag_NOLAYER,  /**< NOLAYER */
396   TidyTag_NOSAVE,   /**< NOSAVE */
397   TidyTag_NOSCRIPT, /**< NOSCRIPT */
398   TidyTag_OBJECT,   /**< OBJECT */
399   TidyTag_OL,       /**< OL */
400   TidyTag_OPTGROUP, /**< OPTGROUP */
401   TidyTag_OPTION,   /**< OPTION */
402   TidyTag_P,        /**< P */
403   TidyTag_PARAM,    /**< PARAM */
404   TidyTag_PICTURE,  /**< PICTURE (HTML5) */
405   TidyTag_PLAINTEXT,/**< PLAINTEXT */
406   TidyTag_PRE,      /**< PRE */
407   TidyTag_Q,        /**< Q */
408   TidyTag_RB,       /**< RB */
409   TidyTag_RBC,      /**< RBC */
410   TidyTag_RP,       /**< RP */
411   TidyTag_RT,       /**< RT */
412   TidyTag_RTC,      /**< RTC */
413   TidyTag_RUBY,     /**< RUBY */
414   TidyTag_S,        /**< S */
415   TidyTag_SAMP,     /**< SAMP */
416   TidyTag_SCRIPT,   /**< SCRIPT */
417   TidyTag_SELECT,   /**< SELECT */
418   TidyTag_SERVER,   /**< SERVER */
419   TidyTag_SERVLET,  /**< SERVLET */
420   TidyTag_SMALL,    /**< SMALL */
421   TidyTag_SPACER,   /**< SPACER */
422   TidyTag_SPAN,     /**< SPAN */
423   TidyTag_STRIKE,   /**< STRIKE */
424   TidyTag_STRONG,   /**< STRONG */
425   TidyTag_STYLE,    /**< STYLE */
426   TidyTag_SUB,      /**< SUB */
427   TidyTag_SUP,      /**< SUP */
428   TidyTag_SVG,      /**< SVG  (HTML5) */
429   TidyTag_TABLE,    /**< TABLE */
430   TidyTag_TBODY,    /**< TBODY */
431   TidyTag_TD,       /**< TD */
432   TidyTag_TEXTAREA, /**< TEXTAREA */
433   TidyTag_TFOOT,    /**< TFOOT */
434   TidyTag_TH,       /**< TH */
435   TidyTag_THEAD,    /**< THEAD */
436   TidyTag_TITLE,    /**< TITLE */
437   TidyTag_TR,       /**< TR */
438   TidyTag_TT,       /**< TT */
439   TidyTag_U,        /**< U */
440   TidyTag_UL,       /**< UL */
441   TidyTag_VAR,      /**< VAR */
442   TidyTag_WBR,      /**< WBR */
443   TidyTag_XMP,      /**< XMP */
444   TidyTag_NEXTID,   /**< NEXTID */
445
446   TidyTag_ARTICLE,
447   TidyTag_ASIDE,
448   TidyTag_AUDIO,
449   TidyTag_BDI,
450   TidyTag_CANVAS,
451   TidyTag_COMMAND,
452   TidyTag_DATALIST,
453   TidyTag_DETAILS,
454   TidyTag_DIALOG,
455   TidyTag_FIGCAPTION,
456   TidyTag_FIGURE,
457   TidyTag_FOOTER,
458   TidyTag_HEADER,
459   TidyTag_HGROUP,
460   TidyTag_MAIN,
461   TidyTag_MARK,
462   TidyTag_MENUITEM,
463   TidyTag_METER,
464   TidyTag_NAV,
465   TidyTag_OUTPUT,
466   TidyTag_PROGRESS,
467   TidyTag_SECTION,
468   TidyTag_SOURCE,
469   TidyTag_SUMMARY,
470   TidyTag_TEMPLATE,
471   TidyTag_TIME,
472   TidyTag_TRACK,
473   TidyTag_VIDEO,
474
475   N_TIDY_TAGS       /**< Must be last */
476 } TidyTagId;
477
478 /* Attribute interrogation
479 */
480
481 /** Known HTML attributes
482 */
483 typedef enum
484 {
485   TidyAttr_UNKNOWN,           /**< UNKNOWN= */
486   TidyAttr_ABBR,              /**< ABBR= */
487   TidyAttr_ACCEPT,            /**< ACCEPT= */
488   TidyAttr_ACCEPT_CHARSET,    /**< ACCEPT_CHARSET= */
489   TidyAttr_ACCESSKEY,         /**< ACCESSKEY= */
490   TidyAttr_ACTION,            /**< ACTION= */
491   TidyAttr_ADD_DATE,          /**< ADD_DATE= */
492   TidyAttr_ALIGN,             /**< ALIGN= */
493   TidyAttr_ALINK,             /**< ALINK= */
494   TidyAttr_ALT,               /**< ALT= */
495   TidyAttr_ARCHIVE,           /**< ARCHIVE= */
496   TidyAttr_AXIS,              /**< AXIS= */
497   TidyAttr_BACKGROUND,        /**< BACKGROUND= */
498   TidyAttr_BGCOLOR,           /**< BGCOLOR= */
499   TidyAttr_BGPROPERTIES,      /**< BGPROPERTIES= */
500   TidyAttr_BORDER,            /**< BORDER= */
501   TidyAttr_BORDERCOLOR,       /**< BORDERCOLOR= */
502   TidyAttr_BOTTOMMARGIN,      /**< BOTTOMMARGIN= */
503   TidyAttr_CELLPADDING,       /**< CELLPADDING= */
504   TidyAttr_CELLSPACING,       /**< CELLSPACING= */
505   TidyAttr_CHAR,              /**< CHAR= */
506   TidyAttr_CHAROFF,           /**< CHAROFF= */
507   TidyAttr_CHARSET,           /**< CHARSET= */
508   TidyAttr_CHECKED,           /**< CHECKED= */
509   TidyAttr_CITE,              /**< CITE= */
510   TidyAttr_CLASS,             /**< CLASS= */
511   TidyAttr_CLASSID,           /**< CLASSID= */
512   TidyAttr_CLEAR,             /**< CLEAR= */
513   TidyAttr_CODE,              /**< CODE= */
514   TidyAttr_CODEBASE,          /**< CODEBASE= */
515   TidyAttr_CODETYPE,          /**< CODETYPE= */
516   TidyAttr_COLOR,             /**< COLOR= */
517   TidyAttr_COLS,              /**< COLS= */
518   TidyAttr_COLSPAN,           /**< COLSPAN= */
519   TidyAttr_COMPACT,           /**< COMPACT= */
520   TidyAttr_CONTENT,           /**< CONTENT= */
521   TidyAttr_COORDS,            /**< COORDS= */
522   TidyAttr_DATA,              /**< DATA= */
523   TidyAttr_DATAFLD,           /**< DATAFLD= */
524   TidyAttr_DATAFORMATAS,      /**< DATAFORMATAS= */
525   TidyAttr_DATAPAGESIZE,      /**< DATAPAGESIZE= */
526   TidyAttr_DATASRC,           /**< DATASRC= */
527   TidyAttr_DATETIME,          /**< DATETIME= */
528   TidyAttr_DECLARE,           /**< DECLARE= */
529   TidyAttr_DEFER,             /**< DEFER= */
530   TidyAttr_DIR,               /**< DIR= */
531   TidyAttr_DISABLED,          /**< DISABLED= */
532   TidyAttr_ENCODING,          /**< ENCODING= */
533   TidyAttr_ENCTYPE,           /**< ENCTYPE= */
534   TidyAttr_FACE,              /**< FACE= */
535   TidyAttr_FOR,               /**< FOR= */
536   TidyAttr_FRAME,             /**< FRAME= */
537   TidyAttr_FRAMEBORDER,       /**< FRAMEBORDER= */
538   TidyAttr_FRAMESPACING,      /**< FRAMESPACING= */
539   TidyAttr_GRIDX,             /**< GRIDX= */
540   TidyAttr_GRIDY,             /**< GRIDY= */
541   TidyAttr_HEADERS,           /**< HEADERS= */
542   TidyAttr_HEIGHT,            /**< HEIGHT= */
543   TidyAttr_HREF,              /**< HREF= */
544   TidyAttr_HREFLANG,          /**< HREFLANG= */
545   TidyAttr_HSPACE,            /**< HSPACE= */
546   TidyAttr_HTTP_EQUIV,        /**< HTTP_EQUIV= */
547   TidyAttr_ID,                /**< ID= */
548   TidyAttr_ISMAP,             /**< ISMAP= */
549   TidyAttr_ITEMID,            /**< ITEMID= */
550   TidyAttr_ITEMPROP,          /**< ITEMPROP= */
551   TidyAttr_ITEMREF,           /**< ITEMREF= */
552   TidyAttr_ITEMSCOPE,         /**< ITEMSCOPE= */
553   TidyAttr_ITEMTYPE,          /**< ITEMTYPE= */
554   TidyAttr_LABEL,             /**< LABEL= */
555   TidyAttr_LANG,              /**< LANG= */
556   TidyAttr_LANGUAGE,          /**< LANGUAGE= */
557   TidyAttr_LAST_MODIFIED,     /**< LAST_MODIFIED= */
558   TidyAttr_LAST_VISIT,        /**< LAST_VISIT= */
559   TidyAttr_LEFTMARGIN,        /**< LEFTMARGIN= */
560   TidyAttr_LINK,              /**< LINK= */
561   TidyAttr_LONGDESC,          /**< LONGDESC= */
562   TidyAttr_LOWSRC,            /**< LOWSRC= */
563   TidyAttr_MARGINHEIGHT,      /**< MARGINHEIGHT= */
564   TidyAttr_MARGINWIDTH,       /**< MARGINWIDTH= */
565   TidyAttr_MAXLENGTH,         /**< MAXLENGTH= */
566   TidyAttr_MEDIA,             /**< MEDIA= */
567   TidyAttr_METHOD,            /**< METHOD= */
568   TidyAttr_MULTIPLE,          /**< MULTIPLE= */
569   TidyAttr_NAME,              /**< NAME= */
570   TidyAttr_NOHREF,            /**< NOHREF= */
571   TidyAttr_NORESIZE,          /**< NORESIZE= */
572   TidyAttr_NOSHADE,           /**< NOSHADE= */
573   TidyAttr_NOWRAP,            /**< NOWRAP= */
574   TidyAttr_OBJECT,            /**< OBJECT= */
575   TidyAttr_OnAFTERUPDATE,     /**< OnAFTERUPDATE= */
576   TidyAttr_OnBEFOREUNLOAD,    /**< OnBEFOREUNLOAD= */
577   TidyAttr_OnBEFOREUPDATE,    /**< OnBEFOREUPDATE= */
578   TidyAttr_OnBLUR,            /**< OnBLUR= */
579   TidyAttr_OnCHANGE,          /**< OnCHANGE= */
580   TidyAttr_OnCLICK,           /**< OnCLICK= */
581   TidyAttr_OnDATAAVAILABLE,   /**< OnDATAAVAILABLE= */
582   TidyAttr_OnDATASETCHANGED,  /**< OnDATASETCHANGED= */
583   TidyAttr_OnDATASETCOMPLETE, /**< OnDATASETCOMPLETE= */
584   TidyAttr_OnDBLCLICK,        /**< OnDBLCLICK= */
585   TidyAttr_OnERRORUPDATE,     /**< OnERRORUPDATE= */
586   TidyAttr_OnFOCUS,           /**< OnFOCUS= */
587   TidyAttr_OnKEYDOWN,         /**< OnKEYDOWN= */
588   TidyAttr_OnKEYPRESS,        /**< OnKEYPRESS= */
589   TidyAttr_OnKEYUP,           /**< OnKEYUP= */
590   TidyAttr_OnLOAD,            /**< OnLOAD= */
591   TidyAttr_OnMOUSEDOWN,       /**< OnMOUSEDOWN= */
592   TidyAttr_OnMOUSEMOVE,       /**< OnMOUSEMOVE= */
593   TidyAttr_OnMOUSEOUT,        /**< OnMOUSEOUT= */
594   TidyAttr_OnMOUSEOVER,       /**< OnMOUSEOVER= */
595   TidyAttr_OnMOUSEUP,         /**< OnMOUSEUP= */
596   TidyAttr_OnRESET,           /**< OnRESET= */
597   TidyAttr_OnROWENTER,        /**< OnROWENTER= */
598   TidyAttr_OnROWEXIT,         /**< OnROWEXIT= */
599   TidyAttr_OnSELECT,          /**< OnSELECT= */
600   TidyAttr_OnSUBMIT,          /**< OnSUBMIT= */
601   TidyAttr_OnUNLOAD,          /**< OnUNLOAD= */
602   TidyAttr_PROFILE,           /**< PROFILE= */
603   TidyAttr_PROMPT,            /**< PROMPT= */
604   TidyAttr_RBSPAN,            /**< RBSPAN= */
605   TidyAttr_READONLY,          /**< READONLY= */
606   TidyAttr_REL,               /**< REL= */
607   TidyAttr_REV,               /**< REV= */
608   TidyAttr_RIGHTMARGIN,       /**< RIGHTMARGIN= */
609   TidyAttr_ROLE,              /**< ROLE= */
610   TidyAttr_ROWS,              /**< ROWS= */
611   TidyAttr_ROWSPAN,           /**< ROWSPAN= */
612   TidyAttr_RULES,             /**< RULES= */
613   TidyAttr_SCHEME,            /**< SCHEME= */
614   TidyAttr_SCOPE,             /**< SCOPE= */
615   TidyAttr_SCROLLING,         /**< SCROLLING= */
616   TidyAttr_SELECTED,          /**< SELECTED= */
617   TidyAttr_SHAPE,             /**< SHAPE= */
618   TidyAttr_SHOWGRID,          /**< SHOWGRID= */
619   TidyAttr_SHOWGRIDX,         /**< SHOWGRIDX= */
620   TidyAttr_SHOWGRIDY,         /**< SHOWGRIDY= */
621   TidyAttr_SIZE,              /**< SIZE= */
622   TidyAttr_SPAN,              /**< SPAN= */
623   TidyAttr_SRC,               /**< SRC= */
624   TidyAttr_SRCSET,            /**< SRCSET= (HTML5) */
625   TidyAttr_STANDBY,           /**< STANDBY= */
626   TidyAttr_START,             /**< START= */
627   TidyAttr_STYLE,             /**< STYLE= */
628   TidyAttr_SUMMARY,           /**< SUMMARY= */
629   TidyAttr_TABINDEX,          /**< TABINDEX= */
630   TidyAttr_TARGET,            /**< TARGET= */
631   TidyAttr_TEXT,              /**< TEXT= */
632   TidyAttr_TITLE,             /**< TITLE= */
633   TidyAttr_TOPMARGIN,         /**< TOPMARGIN= */
634   TidyAttr_TYPE,              /**< TYPE= */
635   TidyAttr_USEMAP,            /**< USEMAP= */
636   TidyAttr_VALIGN,            /**< VALIGN= */
637   TidyAttr_VALUE,             /**< VALUE= */
638   TidyAttr_VALUETYPE,         /**< VALUETYPE= */
639   TidyAttr_VERSION,           /**< VERSION= */
640   TidyAttr_VLINK,             /**< VLINK= */
641   TidyAttr_VSPACE,            /**< VSPACE= */
642   TidyAttr_WIDTH,             /**< WIDTH= */
643   TidyAttr_WRAP,              /**< WRAP= */
644   TidyAttr_XML_LANG,          /**< XML_LANG= */
645   TidyAttr_XML_SPACE,         /**< XML_SPACE= */
646   TidyAttr_XMLNS,             /**< XMLNS= */
647
648   TidyAttr_EVENT,             /**< EVENT= */
649   TidyAttr_METHODS,           /**< METHODS= */
650   TidyAttr_N,                 /**< N= */
651   TidyAttr_SDAFORM,           /**< SDAFORM= */
652   TidyAttr_SDAPREF,           /**< SDAPREF= */
653   TidyAttr_SDASUFF,           /**< SDASUFF= */
654   TidyAttr_URN,               /**< URN= */
655
656   TidyAttr_ASYNC,
657   TidyAttr_AUTOCOMPLETE,
658   TidyAttr_AUTOFOCUS,
659   TidyAttr_AUTOPLAY,
660   TidyAttr_CHALLENGE,
661   TidyAttr_CONTENTEDITABLE,
662   TidyAttr_CONTEXTMENU,
663   TidyAttr_CONTROLS,
664   TidyAttr_DEFAULT,
665   TidyAttr_DIRNAME,
666   TidyAttr_DRAGGABLE,
667   TidyAttr_DROPZONE,
668   TidyAttr_FORM,
669   TidyAttr_FORMACTION,
670   TidyAttr_FORMENCTYPE,
671   TidyAttr_FORMMETHOD,
672   TidyAttr_FORMNOVALIDATE,
673   TidyAttr_FORMTARGET,
674   TidyAttr_HIDDEN,
675   TidyAttr_HIGH,
676   TidyAttr_ICON,
677   TidyAttr_KEYTYPE,
678   TidyAttr_KIND,
679   TidyAttr_LIST,
680   TidyAttr_LOOP,
681   TidyAttr_LOW,
682   TidyAttr_MANIFEST,
683   TidyAttr_MAX,
684   TidyAttr_MEDIAGROUP,
685   TidyAttr_MIN,
686   TidyAttr_NOVALIDATE,
687   TidyAttr_OPEN,
688   TidyAttr_OPTIMUM,
689   TidyAttr_OnABORT,
690   TidyAttr_OnAFTERPRINT,
691   TidyAttr_OnBEFOREPRINT,
692   TidyAttr_OnCANPLAY,
693   TidyAttr_OnCANPLAYTHROUGH,
694   TidyAttr_OnCONTEXTMENU,
695   TidyAttr_OnCUECHANGE,
696   TidyAttr_OnDRAG,
697   TidyAttr_OnDRAGEND,
698   TidyAttr_OnDRAGENTER,
699   TidyAttr_OnDRAGLEAVE,
700   TidyAttr_OnDRAGOVER,
701   TidyAttr_OnDRAGSTART,
702   TidyAttr_OnDROP,
703   TidyAttr_OnDURATIONCHANGE,
704   TidyAttr_OnEMPTIED,
705   TidyAttr_OnENDED,
706   TidyAttr_OnERROR,
707   TidyAttr_OnHASHCHANGE,
708   TidyAttr_OnINPUT,
709   TidyAttr_OnINVALID,
710   TidyAttr_OnLOADEDDATA,
711   TidyAttr_OnLOADEDMETADATA,
712   TidyAttr_OnLOADSTART,
713   TidyAttr_OnMESSAGE,
714   TidyAttr_OnMOUSEWHEEL,
715   TidyAttr_OnOFFLINE,
716   TidyAttr_OnONLINE,
717   TidyAttr_OnPAGEHIDE,
718   TidyAttr_OnPAGESHOW,
719   TidyAttr_OnPAUSE,
720   TidyAttr_OnPLAY,
721   TidyAttr_OnPLAYING,
722   TidyAttr_OnPOPSTATE,
723   TidyAttr_OnPROGRESS,
724   TidyAttr_OnRATECHANGE,
725   TidyAttr_OnREADYSTATECHANGE,
726   TidyAttr_OnREDO,
727   TidyAttr_OnRESIZE,
728   TidyAttr_OnSCROLL,
729   TidyAttr_OnSEEKED,
730   TidyAttr_OnSEEKING,
731   TidyAttr_OnSHOW,
732   TidyAttr_OnSTALLED,
733   TidyAttr_OnSTORAGE,
734   TidyAttr_OnSUSPEND,
735   TidyAttr_OnTIMEUPDATE,
736   TidyAttr_OnUNDO,
737   TidyAttr_OnVOLUMECHANGE,
738   TidyAttr_OnWAITING,
739   TidyAttr_PATTERN,
740   TidyAttr_PLACEHOLDER,
741   TidyAttr_POSTER,
742   TidyAttr_PRELOAD,
743   TidyAttr_PUBDATE,
744   TidyAttr_RADIOGROUP,
745   TidyAttr_REQUIRED,
746   TidyAttr_REVERSED,
747   TidyAttr_SANDBOX,
748   TidyAttr_SCOPED,
749   TidyAttr_SEAMLESS,
750   TidyAttr_SIZES,
751   TidyAttr_SPELLCHECK,
752   TidyAttr_SRCDOC,
753   TidyAttr_SRCLANG,
754   TidyAttr_STEP,
755   TidyAttr_ARIA_ACTIVEDESCENDANT,
756   TidyAttr_ARIA_ATOMIC,
757   TidyAttr_ARIA_AUTOCOMPLETE,
758   TidyAttr_ARIA_BUSY,
759   TidyAttr_ARIA_CHECKED,
760   TidyAttr_ARIA_CONTROLS,
761   TidyAttr_ARIA_DESCRIBEDBY,
762   TidyAttr_ARIA_DISABLED,
763   TidyAttr_ARIA_DROPEFFECT,
764   TidyAttr_ARIA_EXPANDED,
765   TidyAttr_ARIA_FLOWTO,
766   TidyAttr_ARIA_GRABBED,
767   TidyAttr_ARIA_HASPOPUP,
768   TidyAttr_ARIA_HIDDEN,
769   TidyAttr_ARIA_INVALID,
770   TidyAttr_ARIA_LABEL,
771   TidyAttr_ARIA_LABELLEDBY,
772   TidyAttr_ARIA_LEVEL,
773   TidyAttr_ARIA_LIVE,
774   TidyAttr_ARIA_MULTILINE,
775   TidyAttr_ARIA_MULTISELECTABLE,
776   TidyAttr_ARIA_ORIENTATION,
777   TidyAttr_ARIA_OWNS,
778   TidyAttr_ARIA_POSINSET,
779   TidyAttr_ARIA_PRESSED,
780   TidyAttr_ARIA_READONLY,
781   TidyAttr_ARIA_RELEVANT,
782   TidyAttr_ARIA_REQUIRED,
783   TidyAttr_ARIA_SELECTED,
784   TidyAttr_ARIA_SETSIZE,
785   TidyAttr_ARIA_SORT,
786   TidyAttr_ARIA_VALUEMAX,
787   TidyAttr_ARIA_VALUEMIN,
788   TidyAttr_ARIA_VALUENOW,
789   TidyAttr_ARIA_VALUETEXT,
790
791   /* SVG attributes (SVG 1.1) */
792   TidyAttr_X,                                   /**< X= */
793   TidyAttr_Y,                   /**< Y= */
794   TidyAttr_VIEWBOX,             /**< VIEWBOX= */
795   TidyAttr_PRESERVEASPECTRATIO, /**< PRESERVEASPECTRATIO= */
796   TidyAttr_ZOOMANDPAN,          /**< ZOOMANDPAN= */
797   TidyAttr_BASEPROFILE,         /**< BASEPROFILE= */
798   TidyAttr_CONTENTSCRIPTTYPE,   /**< CONTENTSCRIPTTYPE= */
799   TidyAttr_CONTENTSTYLETYPE,    /**< CONTENTSTYLETYPE= */
800   /* MathML <math> attributes */
801   TidyAttr_DISPLAY,             /**< DISPLAY= (html5) */
802
803   N_TIDY_ATTRIBS              /**< Must be last */
804 } TidyAttrId;
805
806 #ifdef __cplusplus
807 }  /* extern "C" */
808 #endif
809 #endif /* __TIDYENUM_H__ */
810