Merge pull request #450 from marcoscaceres/as_attribute

Add support for link 'as' attribute (closes #449)
This commit is contained in:
Geoff McLane 2016-09-11 15:46:38 +02:00 committed by GitHub
commit a820f06cc8
3 changed files with 6 additions and 0 deletions

View file

@ -848,6 +848,8 @@ typedef enum
TidyAttr_INTEGRITY, /**< INTEGRITY= */ TidyAttr_INTEGRITY, /**< INTEGRITY= */
TidyAttr_AS, /**< AS= */
N_TIDY_ATTRIBS /**< Must be last */ N_TIDY_ATTRIBS /**< Must be last */
} TidyAttrId; } TidyAttrId;

View file

@ -1950,6 +1950,7 @@ const AttrVersion TY_(W3CAttrsFor_LINK)[] =
{ {
INCLUDE_ARIA INCLUDE_ARIA
INCLUDE_MICRODATA INCLUDE_MICRODATA
{ TidyAttr_AS, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },
{ TidyAttr_CHARSET, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|XB10|xxxx|xxxx }, { TidyAttr_CHARSET, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|XB10|xxxx|xxxx },
{ TidyAttr_CLASS, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|XB10|HT50|XH50 }, /* CORE override */ { TidyAttr_CLASS, xxxx|xxxx|H40T|H41T|X10T|H40F|H41F|X10F|H40S|H41S|X10S|XH11|XB10|HT50|XH50 }, /* CORE override */
{ TidyAttr_CROSSORIGIN, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 }, { TidyAttr_CROSSORIGIN, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },

View file

@ -440,6 +440,9 @@ static const Attribute attribute_defs [] =
{ TidyAttr_INTEGRITY, "integrity", CH_PCDATA }, { TidyAttr_INTEGRITY, "integrity", CH_PCDATA },
/* Preload spec: https://www.w3.org/TR/preload/ */
{ TidyAttr_AS, "as", CH_PCDATA },
/* this must be the final entry */ /* this must be the final entry */
{ N_TIDY_ATTRIBS, NULL, NULL } { N_TIDY_ATTRIBS, NULL, NULL }
}; };