@@ -70,6 +70,7 @@ typedef enum
7070 TidyCharEncoding , /**< In/out character encoding */
7171 TidyCoerceEndTags , /**< Coerce end tags from start tags where probably intended */
7272 TidyCSSPrefix , /**< CSS class naming for clean option */
73+ TidyCustomTags , /**< Enable Tidy to use autonomous custom tags */
7374 TidyDecorateInferredUL , /**< Mark inferred UL elements with no indent CSS */
7475 TidyDoctype , /**< User specified doctype */
7576#ifndef DOXYGEN_SHOULD_SKIP_THIS
@@ -154,6 +155,9 @@ typedef enum
154155 TidyTabSize , /**< Expand tabs to n spaces */
155156 TidyUpperCaseAttrs , /**< Output attributes in upper not lower case */
156157 TidyUpperCaseTags , /**< Output tags in upper not lower case */
158+ #ifndef DOXYGEN_SHOULD_SKIP_THIS
159+ TidyUseCustomTags , /**< Internal use ONLY */
160+ #endif
157161 TidyVertSpace , /**< degree to which markup is spread out vertically */
158162 TidyWord2000 , /**< Draconian cleaning for Word2000 */
159163 TidyWrapAsp , /**< Wrap within ASP pseudo elements */
@@ -193,6 +197,19 @@ typedef enum
193197 TidyAutoState /**< Automatic */
194198} TidyTriState ;
195199
200+ /** Integer values used by ParseUseCustomTags. These are used throughout
201+ * LibTidy to indicate the how Tidy treats custom tags, and also have
202+ * associated localized strings to describe them.
203+ */
204+ typedef enum
205+ {
206+ TidyCustomNo = 300 ,
207+ TidyCustomBlocklevel ,
208+ TidyCustomEmpty ,
209+ TidyCustomInline ,
210+ TidyCustomPre
211+ } TidyUseCustomTagsState ;
212+
196213/** TidyNewline option values to control output line endings.
197214*/
198215typedef enum
@@ -531,6 +548,7 @@ typedef enum
531548 TidyAttr_HSPACE , /**< HSPACE= */
532549 TidyAttr_HTTP_EQUIV , /**< HTTP_EQUIV= */
533550 TidyAttr_ID , /**< ID= */
551+ TidyAttr_IS , /**< IS= */
534552 TidyAttr_ISMAP , /**< ISMAP= */
535553 TidyAttr_ITEMID , /**< ITEMID= */
536554 TidyAttr_ITEMPROP , /**< ITEMPROP= */
@@ -889,6 +907,7 @@ typedef enum
889907 FN(OBSOLETE_ELEMENT) \
890908 FN(PROPRIETARY_ELEMENT) \
891909 FN(REPLACING_ELEMENT) \
910+ FN(CUSTOM_TAG_DETECTED) \
892911 FN(REPLACING_UNEX_ELEMENT) \
893912 FN(SPACE_PRECEDING_XMLDECL) \
894913 FN(SUSPECTED_MISSING_QUOTE) \
@@ -922,6 +941,7 @@ typedef enum
922941 FN(JOINING_ATTRIBUTE) \
923942 FN(MISMATCHED_ATTRIBUTE_ERROR) \
924943 FN(MISMATCHED_ATTRIBUTE_WARN) \
944+ FN(ATTRIBUTE_IS_NOT_ALLOWED) \
925945 FN(MISSING_ATTR_VALUE) \
926946 FN(MISSING_ATTRIBUTE) \
927947 FN(MISSING_IMAGEMAP) \
0 commit comments