diff --git a/include/tidyenum.h b/include/tidyenum.h index f87de49..7ff8c14 100644 --- a/include/tidyenum.h +++ b/include/tidyenum.h @@ -796,6 +796,8 @@ typedef enum TidyAttr_BASEPROFILE, /**< BASEPROFILE= */ TidyAttr_CONTENTSCRIPTTYPE, /**< CONTENTSCRIPTTYPE= */ TidyAttr_CONTENTSTYLETYPE, /**< CONTENTSTYLETYPE= */ + /* MathML attributes */ + TidyAttr_DISPLAY, /**< DISPLAY= (html5) */ N_TIDY_ATTRIBS /**< Must be last */ } TidyAttrId; diff --git a/src/attrdict.c b/src/attrdict.c index d858b72..b9e070f 100644 --- a/src/attrdict.c +++ b/src/attrdict.c @@ -7755,6 +7755,7 @@ const AttrVersion TY_(W3CAttrsFor_MATHML)[] = /* [i_a]2 */ { TidyAttr_ALIGN, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|xxxx|HT50|XH50 }, { TidyAttr_CLASS, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|xxxx|HT50|XH50 }, { TidyAttr_DIR, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|xxxx|HT50|XH50 }, + { TidyAttr_DISPLAY, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 }, { TidyAttr_ID, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|xxxx|HT50|XH50 }, { TidyAttr_HEIGHT, xxxx|HT32|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|XB10|HT50|XH50 }, { TidyAttr_LANG, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|xxxx|xxxx|HT50|XH50 }, diff --git a/src/attrs.c b/src/attrs.c index d95099e..b0ab4c2 100644 --- a/src/attrs.c +++ b/src/attrs.c @@ -415,6 +415,7 @@ static const Attribute attribute_defs [] = { TidyAttr_CONTENTSCRIPTTYPE, "contentscripttype", CH_PCDATA }, /* for */ { TidyAttr_CONTENTSTYLETYPE, "contentstyletype", CH_PCDATA }, /* for */ #endif + { TidyAttr_DISPLAY, "display", CH_PCDATA }, /* on MATH tag (html5) */ /* this must be the final entry */ { N_TIDY_ATTRIBS, NULL, NULL }