@@ -102,6 +102,11 @@ static AttrCheck CheckSvgAttr;
102
102
#define CH_DECIMAL CheckDecimal
103
103
#define CH_SVG CheckSvgAttr
104
104
105
+ /*
106
+ WARNING: This table /must/ be kept in the EXACT order of the TidyAttrId enum!
107
+ When running the DEBUG version, this order is checked, in TY_(InitAttrs)(doc),
108
+ and there is an assert() if any difference found.
109
+ */
105
110
static const Attribute attribute_defs [] =
106
111
{
107
112
{ TidyAttr_UNKNOWN , "unknown!" , NULL },
@@ -183,7 +188,6 @@ static const Attribute attribute_defs [] =
183
188
{ TidyAttr_LAST_VISIT , "last_visit" , CH_PCDATA }, /* A */
184
189
{ TidyAttr_LEFTMARGIN , "leftmargin" , CH_NUMBER }, /* used on BODY */
185
190
{ TidyAttr_LINK , "link" , CH_COLOR }, /* BODY */
186
- { TidyAttr_LOADING , "loading" , CH_LOADING }, /* IMG, IFRAME */
187
191
{ TidyAttr_LONGDESC , "longdesc" , CH_URL }, /* IMG */
188
192
{ TidyAttr_LOWSRC , "lowsrc" , CH_URL }, /* IMG */
189
193
{ TidyAttr_MARGINHEIGHT , "marginheight" , CH_NUMBER }, /* FRAME, IFRAME, BODY */
@@ -245,7 +249,6 @@ static const Attribute attribute_defs [] =
245
249
{ TidyAttr_SHOWGRIDX , "showgridx" , CH_BOOL }, /* TABLE Adobe golive*/
246
250
{ TidyAttr_SHOWGRIDY , "showgridy" , CH_BOOL }, /* TABLE Adobe golive*/
247
251
{ TidyAttr_SIZE , "size" , CH_NUMBER }, /* HR, FONT, BASEFONT, SELECT */
248
- { TidyAttr_SLOT , "slot" , CH_PCDATA },
249
252
{ TidyAttr_SPAN , "span" , CH_NUMBER }, /* COL, COLGROUP */
250
253
{ TidyAttr_SRC , "src" , CH_URL }, /* IMG, FRAME, IFRAME */
251
254
{ TidyAttr_SRCSET , "srcset" , CH_PCDATA }, /* IMG (HTML5) */
@@ -447,6 +450,8 @@ static const Attribute attribute_defs [] =
447
450
448
451
/* for xmlns:xlink in <svg> */
449
452
{ TidyAttr_XMLNSXLINK , "xmlns:xlink" , CH_URL },
453
+ { TidyAttr_SLOT , "slot" , CH_PCDATA },
454
+ { TidyAttr_LOADING , "loading" , CH_LOADING }, /* IMG, IFRAME */
450
455
451
456
/* SVG paint attributes (SVG 1.1) */
452
457
{ TidyAttr_FILL , "fill" , CH_SVG },
0 commit comments