HTML Tidy  5.4.0
The HTACG Tidy HTML Project
attrs.h
Go to the documentation of this file.
1 #ifndef __ATTRS_H__
2 #define __ATTRS_H__
3 
4 /* attrs.h -- recognize HTML attributes
5 
6  (c) 1998-2007 (W3C) MIT, ERCIM, Keio University
7  See tidy.h for the copyright notice.
8 
9 */
10 
11 #include "forward.h"
12 
13 /* declaration for methods that check attribute values */
14 typedef void (AttrCheck)(TidyDocImpl* doc, Node *node, AttVal *attval);
15 
16 struct _Attribute
17 {
21 
22  struct _Attribute* next;
23 };
24 
25 
26 /*
27  Anchor/Node linked list
28 */
29 
30 struct _Anchor
31 {
32  struct _Anchor *next;
33  Node *node;
34  char *name;
35 };
36 
37 typedef struct _Anchor Anchor;
38 
39 #if !defined(ATTRIBUTE_HASH_LOOKUP)
40 #define ATTRIBUTE_HASH_LOOKUP 1
41 #endif
42 
43 #if ATTRIBUTE_HASH_LOOKUP
44 enum
45 {
47 };
48 
49 struct _AttrHash
50 {
51  Attribute const* attr;
52  struct _AttrHash* next;
53 };
54 
55 typedef struct _AttrHash AttrHash;
56 #endif
57 
58 enum
59 {
61 };
62 
64 {
65  /* anchor/node lookup */
67 
68  /* Declared literal attributes */
69  Attribute* declared_attr_list;
70 
71 #if ATTRIBUTE_HASH_LOOKUP
73 #endif
74 };
75 
76 typedef struct _TidyAttribImpl TidyAttribImpl;
77 
78 #define XHTML_NAMESPACE "http://www.w3.org/1999/xhtml"
79 
80 AttrCheck TY_(CheckUrl);
81 
82 /* public method for finding attribute definition by name */
83 const Attribute* TY_(CheckAttribute)( TidyDocImpl* doc, Node *node, AttVal *attval );
84 
85 const Attribute* TY_(FindAttribute)( TidyDocImpl* doc, AttVal *attval );
86 
87 AttVal* TY_(GetAttrByName)( Node *node, ctmbstr name );
88 
89 void TY_(DropAttrByName)( TidyDocImpl* doc, Node *node, ctmbstr name );
90 
91 AttVal* TY_(AddAttribute)( TidyDocImpl* doc,
92  Node *node, ctmbstr name, ctmbstr value );
93 
94 AttVal* TY_(RepairAttrValue)(TidyDocImpl* doc, Node* node, ctmbstr name, ctmbstr value);
95 
96 Bool TY_(IsUrl)( TidyDocImpl* doc, ctmbstr attrname );
97 
98 /* Bool IsBool( TidyDocImpl* doc, ctmbstr attrname ); */
99 
100 Bool TY_(IsScript)( TidyDocImpl* doc, ctmbstr attrname );
101 
102 /* may id or name serve as anchor? */
103 Bool TY_(IsAnchorElement)( TidyDocImpl* doc, Node* node );
104 
105 /*
106  In CSS1, selectors can contain only the characters A-Z, 0-9, and
107  Unicode characters 161-255, plus dash (-); they cannot start with
108  a dash or a digit; they can also contain escaped characters and any
109  Unicode character as a numeric code (see next item).
110 
111  The backslash followed by at most four hexadecimal digits (0..9A..F)
112  stands for the Unicode character with that number.
113 
114  Any character except a hexadecimal digit can be escaped to remove its
115  special meaning, by putting a backslash in front.
116 
117  #508936 - CSS class naming for -clean option
118 */
119 Bool TY_(IsCSS1Selector)( ctmbstr buf );
120 
121 Bool TY_(IsValidHTMLID)(ctmbstr id);
122 Bool TY_(IsValidXMLID)(ctmbstr id);
123 
124 /* removes anchor for specific node */
125 void TY_(RemoveAnchorByNode)( TidyDocImpl* doc, ctmbstr name, Node *node );
126 
127 /* free all anchors */
128 void TY_(FreeAnchors)( TidyDocImpl* doc );
129 
130 
131 /* public methods for inititializing/freeing attribute dictionary */
132 void TY_(InitAttrs)( TidyDocImpl* doc );
133 void TY_(FreeAttrTable)( TidyDocImpl* doc );
134 
135 void TY_(AppendToClassAttr)( TidyDocImpl* doc, AttVal *classattr, ctmbstr classname );
136 /*
137  the same attribute name can't be used
138  more than once in each element
139 */
140 void TY_(RepairDuplicateAttributes)( TidyDocImpl* doc, Node* node, Bool isXml );
141 void TY_(SortAttributes)(Node* node, TidyAttrSortStrategy strat);
142 
143 Bool TY_(IsBoolAttribute)( AttVal* attval );
144 Bool TY_(attrIsEvent)( AttVal* attval );
145 
146 AttVal* TY_(AttrGetById)( Node* node, TidyAttrId id );
147 
148 uint TY_(NodeAttributeVersions)( Node* node, TidyAttrId id );
149 
150 Bool TY_(AttributeIsProprietary)(Node* node, AttVal* attval);
151 Bool TY_(AttributeIsMismatched)(Node* node, AttVal* attval, TidyDocImpl* doc);
152 
153 
154 /* 0 == TidyAttr_UNKNOWN */
155 #define AttrId(av) ((av) && (av)->dict ? (av)->dict->id : TidyAttr_UNKNOWN)
156 #define AttrIsId(av, atid) ((av) && (av)->dict && ((av)->dict->id == atid))
157 
158 #define AttrHasValue(attr) ((attr) && (attr)->value)
159 #define AttrValueIs(attr, val) (AttrHasValue(attr) && \
160  TY_(tmbstrcasecmp)((attr)->value, val) == 0)
161 #define AttrContains(attr, val) (AttrHasValue(attr) && \
162  TY_(tmbsubstr)((attr)->value, val) != NULL)
163 #define AttrVersions(attr) ((attr) && (attr)->dict ? (attr)->dict->versions : VERS_PROPRIETARY)
164 
165 #define AttrsHaveSameId(a, b) (a && b && a->dict && b->dict && a->dict->id && \
166  b->dict->id && a->dict->id == b->dict->id)
167 
168 #define attrIsABBR(av) AttrIsId( av, TidyAttr_ABBR )
169 #define attrIsACCEPT(av) AttrIsId( av, TidyAttr_ACCEPT )
170 #define attrIsACCEPT_CHARSET(av) AttrIsId( av, TidyAttr_ACCEPT_CHARSET )
171 #define attrIsACCESSKEY(av) AttrIsId( av, TidyAttr_ACCESSKEY )
172 #define attrIsACTION(av) AttrIsId( av, TidyAttr_ACTION )
173 #define attrIsADD_DATE(av) AttrIsId( av, TidyAttr_ADD_DATE )
174 #define attrIsALIGN(av) AttrIsId( av, TidyAttr_ALIGN )
175 #define attrIsALINK(av) AttrIsId( av, TidyAttr_ALINK )
176 #define attrIsALT(av) AttrIsId( av, TidyAttr_ALT )
177 #define attrIsARCHIVE(av) AttrIsId( av, TidyAttr_ARCHIVE )
178 #define attrIsAXIS(av) AttrIsId( av, TidyAttr_AXIS )
179 #define attrIsBACKGROUND(av) AttrIsId( av, TidyAttr_BACKGROUND )
180 #define attrIsBGCOLOR(av) AttrIsId( av, TidyAttr_BGCOLOR )
181 #define attrIsBGPROPERTIES(av) AttrIsId( av, TidyAttr_BGPROPERTIES )
182 #define attrIsBORDER(av) AttrIsId( av, TidyAttr_BORDER )
183 #define attrIsBORDERCOLOR(av) AttrIsId( av, TidyAttr_BORDERCOLOR )
184 #define attrIsBOTTOMMARGIN(av) AttrIsId( av, TidyAttr_BOTTOMMARGIN )
185 #define attrIsCELLPADDING(av) AttrIsId( av, TidyAttr_CELLPADDING )
186 #define attrIsCELLSPACING(av) AttrIsId( av, TidyAttr_CELLSPACING )
187 #define attrIsCHAR(av) AttrIsId( av, TidyAttr_CHAR )
188 #define attrIsCHAROFF(av) AttrIsId( av, TidyAttr_CHAROFF )
189 #define attrIsCHARSET(av) AttrIsId( av, TidyAttr_CHARSET )
190 #define attrIsCHECKED(av) AttrIsId( av, TidyAttr_CHECKED )
191 #define attrIsCITE(av) AttrIsId( av, TidyAttr_CITE )
192 #define attrIsCLASS(av) AttrIsId( av, TidyAttr_CLASS )
193 #define attrIsCLASSID(av) AttrIsId( av, TidyAttr_CLASSID )
194 #define attrIsCLEAR(av) AttrIsId( av, TidyAttr_CLEAR )
195 #define attrIsCODE(av) AttrIsId( av, TidyAttr_CODE )
196 #define attrIsCODEBASE(av) AttrIsId( av, TidyAttr_CODEBASE )
197 #define attrIsCODETYPE(av) AttrIsId( av, TidyAttr_CODETYPE )
198 #define attrIsCOLOR(av) AttrIsId( av, TidyAttr_COLOR )
199 #define attrIsCOLS(av) AttrIsId( av, TidyAttr_COLS )
200 #define attrIsCOLSPAN(av) AttrIsId( av, TidyAttr_COLSPAN )
201 #define attrIsCOMPACT(av) AttrIsId( av, TidyAttr_COMPACT )
202 #define attrIsCONTENT(av) AttrIsId( av, TidyAttr_CONTENT )
203 #define attrIsCOORDS(av) AttrIsId( av, TidyAttr_COORDS )
204 #define attrIsDATA(av) AttrIsId( av, TidyAttr_DATA )
205 #define attrIsDATAFLD(av) AttrIsId( av, TidyAttr_DATAFLD )
206 #define attrIsDATAFORMATAS(av) AttrIsId( av, TidyAttr_DATAFORMATAS )
207 #define attrIsDATAPAGESIZE(av) AttrIsId( av, TidyAttr_DATAPAGESIZE )
208 #define attrIsDATASRC(av) AttrIsId( av, TidyAttr_DATASRC )
209 #define attrIsDATETIME(av) AttrIsId( av, TidyAttr_DATETIME )
210 #define attrIsDECLARE(av) AttrIsId( av, TidyAttr_DECLARE )
211 #define attrIsDEFER(av) AttrIsId( av, TidyAttr_DEFER )
212 #define attrIsDIR(av) AttrIsId( av, TidyAttr_DIR )
213 #define attrIsDISABLED(av) AttrIsId( av, TidyAttr_DISABLED )
214 #define attrIsENCODING(av) AttrIsId( av, TidyAttr_ENCODING )
215 #define attrIsENCTYPE(av) AttrIsId( av, TidyAttr_ENCTYPE )
216 #define attrIsFACE(av) AttrIsId( av, TidyAttr_FACE )
217 #define attrIsFOR(av) AttrIsId( av, TidyAttr_FOR )
218 #define attrIsFRAME(av) AttrIsId( av, TidyAttr_FRAME )
219 #define attrIsFRAMEBORDER(av) AttrIsId( av, TidyAttr_FRAMEBORDER )
220 #define attrIsFRAMESPACING(av) AttrIsId( av, TidyAttr_FRAMESPACING )
221 #define attrIsGRIDX(av) AttrIsId( av, TidyAttr_GRIDX )
222 #define attrIsGRIDY(av) AttrIsId( av, TidyAttr_GRIDY )
223 #define attrIsHEADERS(av) AttrIsId( av, TidyAttr_HEADERS )
224 #define attrIsHEIGHT(av) AttrIsId( av, TidyAttr_HEIGHT )
225 #define attrIsHREF(av) AttrIsId( av, TidyAttr_HREF )
226 #define attrIsHREFLANG(av) AttrIsId( av, TidyAttr_HREFLANG )
227 #define attrIsHSPACE(av) AttrIsId( av, TidyAttr_HSPACE )
228 #define attrIsHTTP_EQUIV(av) AttrIsId( av, TidyAttr_HTTP_EQUIV )
229 #define attrIsID(av) AttrIsId( av, TidyAttr_ID )
230 #define attrIsISMAP(av) AttrIsId( av, TidyAttr_ISMAP )
231 #define attrIsITEMID(av) AttrIsId( av, TidyAttr_ITEMID )
232 #define attrIsITEMPROP(av) AttrIsId( av, TidyAttr_ITEMPROP )
233 #define attrIsITEMREF(av) AttrIsId( av, TidyAttr_ITEMREF )
234 #define attrIsITEMSCOPE(av) AttrIsId( av, TidyAttr_ITEMSCOPE )
235 #define attrIsITEMTYPE(av) AttrIsId( av, TidyAttr_ITEMTYPE )
236 #define attrIsLABEL(av) AttrIsId( av, TidyAttr_LABEL )
237 #define attrIsLANG(av) AttrIsId( av, TidyAttr_LANG )
238 #define attrIsLANGUAGE(av) AttrIsId( av, TidyAttr_LANGUAGE )
239 #define attrIsLAST_MODIFIED(av) AttrIsId( av, TidyAttr_LAST_MODIFIED )
240 #define attrIsLAST_VISIT(av) AttrIsId( av, TidyAttr_LAST_VISIT )
241 #define attrIsLEFTMARGIN(av) AttrIsId( av, TidyAttr_LEFTMARGIN )
242 #define attrIsLINK(av) AttrIsId( av, TidyAttr_LINK )
243 #define attrIsLONGDESC(av) AttrIsId( av, TidyAttr_LONGDESC )
244 #define attrIsLOWSRC(av) AttrIsId( av, TidyAttr_LOWSRC )
245 #define attrIsMARGINHEIGHT(av) AttrIsId( av, TidyAttr_MARGINHEIGHT )
246 #define attrIsMARGINWIDTH(av) AttrIsId( av, TidyAttr_MARGINWIDTH )
247 #define attrIsMAXLENGTH(av) AttrIsId( av, TidyAttr_MAXLENGTH )
248 #define attrIsMEDIA(av) AttrIsId( av, TidyAttr_MEDIA )
249 #define attrIsMETHOD(av) AttrIsId( av, TidyAttr_METHOD )
250 #define attrIsMULTIPLE(av) AttrIsId( av, TidyAttr_MULTIPLE )
251 #define attrIsNAME(av) AttrIsId( av, TidyAttr_NAME )
252 #define attrIsNOHREF(av) AttrIsId( av, TidyAttr_NOHREF )
253 #define attrIsNORESIZE(av) AttrIsId( av, TidyAttr_NORESIZE )
254 #define attrIsNOSHADE(av) AttrIsId( av, TidyAttr_NOSHADE )
255 #define attrIsNOWRAP(av) AttrIsId( av, TidyAttr_NOWRAP )
256 #define attrIsOBJECT(av) AttrIsId( av, TidyAttr_OBJECT )
257 #define attrIsOnAFTERUPDATE(av) AttrIsId( av, TidyAttr_OnAFTERUPDATE )
258 #define attrIsOnBEFOREUNLOAD(av) AttrIsId( av, TidyAttr_OnBEFOREUNLOAD )
259 #define attrIsOnBEFOREUPDATE(av) AttrIsId( av, TidyAttr_OnBEFOREUPDATE )
260 #define attrIsOnBLUR(av) AttrIsId( av, TidyAttr_OnBLUR )
261 #define attrIsOnCHANGE(av) AttrIsId( av, TidyAttr_OnCHANGE )
262 #define attrIsOnCLICK(av) AttrIsId( av, TidyAttr_OnCLICK )
263 #define attrIsOnDATAAVAILABLE(av) AttrIsId( av, TidyAttr_OnDATAAVAILABLE )
264 #define attrIsOnDATASETCHANGED(av) AttrIsId( av, TidyAttr_OnDATASETCHANGED )
265 #define attrIsOnDATASETCOMPLETE(av) AttrIsId( av, TidyAttr_OnDATASETCOMPLETE )
266 #define attrIsOnDBLCLICK(av) AttrIsId( av, TidyAttr_OnDBLCLICK )
267 #define attrIsOnERRORUPDATE(av) AttrIsId( av, TidyAttr_OnERRORUPDATE )
268 #define attrIsOnFOCUS(av) AttrIsId( av, TidyAttr_OnFOCUS )
269 #define attrIsOnKEYDOWN(av) AttrIsId( av, TidyAttr_OnKEYDOWN )
270 #define attrIsOnKEYPRESS(av) AttrIsId( av, TidyAttr_OnKEYPRESS )
271 #define attrIsOnKEYUP(av) AttrIsId( av, TidyAttr_OnKEYUP )
272 #define attrIsOnLOAD(av) AttrIsId( av, TidyAttr_OnLOAD )
273 #define attrIsOnMOUSEDOWN(av) AttrIsId( av, TidyAttr_OnMOUSEDOWN )
274 #define attrIsOnMOUSEMOVE(av) AttrIsId( av, TidyAttr_OnMOUSEMOVE )
275 #define attrIsOnMOUSEOUT(av) AttrIsId( av, TidyAttr_OnMOUSEOUT )
276 #define attrIsOnMOUSEOVER(av) AttrIsId( av, TidyAttr_OnMOUSEOVER )
277 #define attrIsOnMOUSEUP(av) AttrIsId( av, TidyAttr_OnMOUSEUP )
278 #define attrIsOnRESET(av) AttrIsId( av, TidyAttr_OnRESET )
279 #define attrIsOnROWENTER(av) AttrIsId( av, TidyAttr_OnROWENTER )
280 #define attrIsOnROWEXIT(av) AttrIsId( av, TidyAttr_OnROWEXIT )
281 #define attrIsOnSELECT(av) AttrIsId( av, TidyAttr_OnSELECT )
282 #define attrIsOnSUBMIT(av) AttrIsId( av, TidyAttr_OnSUBMIT )
283 #define attrIsOnUNLOAD(av) AttrIsId( av, TidyAttr_OnUNLOAD )
284 #define attrIsPROFILE(av) AttrIsId( av, TidyAttr_PROFILE )
285 #define attrIsPROMPT(av) AttrIsId( av, TidyAttr_PROMPT )
286 #define attrIsRBSPAN(av) AttrIsId( av, TidyAttr_RBSPAN )
287 #define attrIsREADONLY(av) AttrIsId( av, TidyAttr_READONLY )
288 #define attrIsREL(av) AttrIsId( av, TidyAttr_REL )
289 #define attrIsREV(av) AttrIsId( av, TidyAttr_REV )
290 #define attrIsRIGHTMARGIN(av) AttrIsId( av, TidyAttr_RIGHTMARGIN )
291 #define attrIsROLE(av) AttrIsId( av, TidyAttr_ROLE )
292 #define attrIsROWS(av) AttrIsId( av, TidyAttr_ROWS )
293 #define attrIsROWSPAN(av) AttrIsId( av, TidyAttr_ROWSPAN )
294 #define attrIsRULES(av) AttrIsId( av, TidyAttr_RULES )
295 #define attrIsSCHEME(av) AttrIsId( av, TidyAttr_SCHEME )
296 #define attrIsSCOPE(av) AttrIsId( av, TidyAttr_SCOPE )
297 #define attrIsSCROLLING(av) AttrIsId( av, TidyAttr_SCROLLING )
298 #define attrIsSELECTED(av) AttrIsId( av, TidyAttr_SELECTED )
299 #define attrIsSHAPE(av) AttrIsId( av, TidyAttr_SHAPE )
300 #define attrIsSHOWGRID(av) AttrIsId( av, TidyAttr_SHOWGRID )
301 #define attrIsSHOWGRIDX(av) AttrIsId( av, TidyAttr_SHOWGRIDX )
302 #define attrIsSHOWGRIDY(av) AttrIsId( av, TidyAttr_SHOWGRIDY )
303 #define attrIsSIZE(av) AttrIsId( av, TidyAttr_SIZE )
304 #define attrIsSPAN(av) AttrIsId( av, TidyAttr_SPAN )
305 #define attrIsSRC(av) AttrIsId( av, TidyAttr_SRC )
306 #define attrIsSTANDBY(av) AttrIsId( av, TidyAttr_STANDBY )
307 #define attrIsSTART(av) AttrIsId( av, TidyAttr_START )
308 #define attrIsSTYLE(av) AttrIsId( av, TidyAttr_STYLE )
309 #define attrIsSUMMARY(av) AttrIsId( av, TidyAttr_SUMMARY )
310 #define attrIsTABINDEX(av) AttrIsId( av, TidyAttr_TABINDEX )
311 #define attrIsTARGET(av) AttrIsId( av, TidyAttr_TARGET )
312 #define attrIsTEXT(av) AttrIsId( av, TidyAttr_TEXT )
313 #define attrIsTITLE(av) AttrIsId( av, TidyAttr_TITLE )
314 #define attrIsTOPMARGIN(av) AttrIsId( av, TidyAttr_TOPMARGIN )
315 #define attrIsTYPE(av) AttrIsId( av, TidyAttr_TYPE )
316 #define attrIsUSEMAP(av) AttrIsId( av, TidyAttr_USEMAP )
317 #define attrIsVALIGN(av) AttrIsId( av, TidyAttr_VALIGN )
318 #define attrIsVALUE(av) AttrIsId( av, TidyAttr_VALUE )
319 #define attrIsVALUETYPE(av) AttrIsId( av, TidyAttr_VALUETYPE )
320 #define attrIsVERSION(av) AttrIsId( av, TidyAttr_VERSION )
321 #define attrIsVLINK(av) AttrIsId( av, TidyAttr_VLINK )
322 #define attrIsVSPACE(av) AttrIsId( av, TidyAttr_VSPACE )
323 #define attrIsWIDTH(av) AttrIsId( av, TidyAttr_WIDTH )
324 #define attrIsWRAP(av) AttrIsId( av, TidyAttr_WRAP )
325 #define attrIsXMLNS(av) AttrIsId( av, TidyAttr_XMLNS )
326 #define attrIsXML_LANG(av) AttrIsId( av, TidyAttr_XML_LANG )
327 #define attrIsXML_SPACE(av) AttrIsId( av, TidyAttr_XML_SPACE )
328 #define attrIsARIA_ACTIVEDESCENDANT(av) AttrIsId( av, TidyAttr_ARIA_ACTIVEDESCENDANT )
329 #define attrIsARIA_ATOMIC(av) AttrIsId( av, TidyAttr_ARIA_ATOMIC )
330 #define attrIsARIA_AUTOCOMPLETE(av) AttrIsId( av, TidyAttr_ARIA_AUTOCOMPLETE )
331 #define attrIsARIA_BUSY(av) AttrIsId( av, TidyAttr_ARIA_BUSY )
332 #define attrIsARIA_CHECKED(av) AttrIsId( av, TidyAttr_ARIA_CHECKED )
333 #define attrIsARIA_CONTROLS(av) AttrIsId( av, TidyAttr_ARIA_CONTROLS )
334 #define attrIsARIA_DESCRIBEDBY(av) AttrIsId( av, TidyAttr_ARIA_DESCRIBEDBY )
335 #define attrIsARIA_DISABLED(av) AttrIsId( av, TidyAttr_ARIA_DISABLED )
336 #define attrIsARIA_DROPEFFECT(av) AttrIsId( av, TidyAttr_ARIA_DROPEFFECT )
337 #define attrIsARIA_EXPANDED(av) AttrIsId( av, TidyAttr_ARIA_EXPANDED )
338 #define attrIsARIA_FLOWTO(av) AttrIsId( av, TidyAttr_ARIA_FLOWTO )
339 #define attrIsARIA_GRABBED(av) AttrIsId( av, TidyAttr_ARIA_GRABBED )
340 #define attrIsARIA_HASPOPUP(av) AttrIsId( av, TidyAttr_ARIA_HASPOPUP )
341 #define attrIsARIA_HIDDEN(av) AttrIsId( av, TidyAttr_ARIA_HIDDEN )
342 #define attrIsARIA_INVALID(av) AttrIsId( av, TidyAttr_ARIA_INVALID )
343 #define attrIsARIA_LABEL(av) AttrIsId( av, TidyAttr_ARIA_LABEL )
344 #define attrIsARIA_LABELLEDBY(av) AttrIsId( av, TidyAttr_ARIA_LABELLEDBY )
345 #define attrIsARIA_LEVEL(av) AttrIsId( av, TidyAttr_ARIA_LEVEL )
346 #define attrIsARIA_LIVE(av) AttrIsId( av, TidyAttr_ARIA_LIVE )
347 #define attrIsARIA_MULTILINE(av) AttrIsId( av, TidyAttr_ARIA_MULTILINE )
348 #define attrIsARIA_MULTISELECTABLE(av) AttrIsId( av, TidyAttr_ARIA_MULTISELECTABLE )
349 #define attrIsARIA_ORIENTATION(av) AttrIsId( av, TidyAttr_ARIA_ORIENTATION )
350 #define attrIsARIA_OWNS(av) AttrIsId( av, TidyAttr_ARIA_OWNS )
351 #define attrIsARIA_POSINSET(av) AttrIsId( av, TidyAttr_ARIA_POSINSET )
352 #define attrIsARIA_PRESSED(av) AttrIsId( av, TidyAttr_ARIA_PRESSED )
353 #define attrIsARIA_READONLY(av) AttrIsId( av, TidyAttr_ARIA_READONLY )
354 #define attrIsARIA_RELEVANT(av) AttrIsId( av, TidyAttr_ARIA_RELEVANT )
355 #define attrIsARIA_REQUIRED(av) AttrIsId( av, TidyAttr_ARIA_REQUIRED )
356 #define attrIsARIA_SELECTED(av) AttrIsId( av, TidyAttr_ARIA_SELECTED )
357 #define attrIsARIA_SETSIZE(av) AttrIsId( av, TidyAttr_ARIA_SETSIZE )
358 #define attrIsARIA_SORT(av) AttrIsId( av, TidyAttr_ARIA_SORT )
359 #define attrIsARIA_VALUEMAX(av) AttrIsId( av, TidyAttr_ARIA_VALUEMAX )
360 #define attrIsARIA_VALUEMIN(av) AttrIsId( av, TidyAttr_ARIA_VALUEMIN )
361 #define attrIsARIA_VALUENOW(av) AttrIsId( av, TidyAttr_ARIA_VALUENOW )
362 #define attrIsARIA_VALUETEXT(av) AttrIsId( av, TidyAttr_ARIA_VALUETEXT )
363 
364 
365 
366 /* Attribute Retrieval macros
367 */
368 #define attrGetHREF( nod ) TY_(AttrGetById)( nod, TidyAttr_HREF )
369 #define attrGetSRC( nod ) TY_(AttrGetById)( nod, TidyAttr_SRC )
370 #define attrGetID( nod ) TY_(AttrGetById)( nod, TidyAttr_ID )
371 #define attrGetNAME( nod ) TY_(AttrGetById)( nod, TidyAttr_NAME )
372 #define attrGetSUMMARY( nod ) TY_(AttrGetById)( nod, TidyAttr_SUMMARY )
373 #define attrGetALT( nod ) TY_(AttrGetById)( nod, TidyAttr_ALT )
374 #define attrGetLONGDESC( nod ) TY_(AttrGetById)( nod, TidyAttr_LONGDESC )
375 #define attrGetUSEMAP( nod ) TY_(AttrGetById)( nod, TidyAttr_USEMAP )
376 #define attrGetISMAP( nod ) TY_(AttrGetById)( nod, TidyAttr_ISMAP )
377 #define attrGetLANGUAGE( nod ) TY_(AttrGetById)( nod, TidyAttr_LANGUAGE )
378 #define attrGetTYPE( nod ) TY_(AttrGetById)( nod, TidyAttr_TYPE )
379 #define attrGetVALUE( nod ) TY_(AttrGetById)( nod, TidyAttr_VALUE )
380 #define attrGetCONTENT( nod ) TY_(AttrGetById)( nod, TidyAttr_CONTENT )
381 #define attrGetTITLE( nod ) TY_(AttrGetById)( nod, TidyAttr_TITLE )
382 #define attrGetXMLNS( nod ) TY_(AttrGetById)( nod, TidyAttr_XMLNS )
383 #define attrGetDATAFLD( nod ) TY_(AttrGetById)( nod, TidyAttr_DATAFLD )
384 #define attrGetWIDTH( nod ) TY_(AttrGetById)( nod, TidyAttr_WIDTH )
385 #define attrGetHEIGHT( nod ) TY_(AttrGetById)( nod, TidyAttr_HEIGHT )
386 #define attrGetFOR( nod ) TY_(AttrGetById)( nod, TidyAttr_FOR )
387 #define attrGetSELECTED( nod ) TY_(AttrGetById)( nod, TidyAttr_SELECTED )
388 #define attrGetCHECKED( nod ) TY_(AttrGetById)( nod, TidyAttr_CHECKED )
389 #define attrGetLANG( nod ) TY_(AttrGetById)( nod, TidyAttr_LANG )
390 #define attrGetTARGET( nod ) TY_(AttrGetById)( nod, TidyAttr_TARGET )
391 #define attrGetHTTP_EQUIV( nod ) TY_(AttrGetById)( nod, TidyAttr_HTTP_EQUIV )
392 #define attrGetREL( nod ) TY_(AttrGetById)( nod, TidyAttr_REL )
393 
394 #define attrGetOnMOUSEMOVE( nod ) TY_(AttrGetById)( nod, TidyAttr_OnMOUSEMOVE )
395 #define attrGetOnMOUSEDOWN( nod ) TY_(AttrGetById)( nod, TidyAttr_OnMOUSEDOWN )
396 #define attrGetOnMOUSEUP( nod ) TY_(AttrGetById)( nod, TidyAttr_OnMOUSEUP )
397 #define attrGetOnCLICK( nod ) TY_(AttrGetById)( nod, TidyAttr_OnCLICK )
398 #define attrGetOnMOUSEOVER( nod ) TY_(AttrGetById)( nod, TidyAttr_OnMOUSEOVER )
399 #define attrGetOnMOUSEOUT( nod ) TY_(AttrGetById)( nod, TidyAttr_OnMOUSEOUT )
400 #define attrGetOnKEYDOWN( nod ) TY_(AttrGetById)( nod, TidyAttr_OnKEYDOWN )
401 #define attrGetOnKEYUP( nod ) TY_(AttrGetById)( nod, TidyAttr_OnKEYUP )
402 #define attrGetOnKEYPRESS( nod ) TY_(AttrGetById)( nod, TidyAttr_OnKEYPRESS )
403 #define attrGetOnFOCUS( nod ) TY_(AttrGetById)( nod, TidyAttr_OnFOCUS )
404 #define attrGetOnBLUR( nod ) TY_(AttrGetById)( nod, TidyAttr_OnBLUR )
405 
406 #define attrGetBGCOLOR( nod ) TY_(AttrGetById)( nod, TidyAttr_BGCOLOR )
407 
408 #define attrGetLINK( nod ) TY_(AttrGetById)( nod, TidyAttr_LINK )
409 #define attrGetALINK( nod ) TY_(AttrGetById)( nod, TidyAttr_ALINK )
410 #define attrGetVLINK( nod ) TY_(AttrGetById)( nod, TidyAttr_VLINK )
411 
412 #define attrGetTEXT( nod ) TY_(AttrGetById)( nod, TidyAttr_TEXT )
413 #define attrGetSTYLE( nod ) TY_(AttrGetById)( nod, TidyAttr_STYLE )
414 #define attrGetABBR( nod ) TY_(AttrGetById)( nod, TidyAttr_ABBR )
415 #define attrGetCOLSPAN( nod ) TY_(AttrGetById)( nod, TidyAttr_COLSPAN )
416 #define attrGetFONT( nod ) TY_(AttrGetById)( nod, TidyAttr_FONT )
417 #define attrGetBASEFONT( nod ) TY_(AttrGetById)( nod, TidyAttr_BASEFONT )
418 #define attrGetROWSPAN( nod ) TY_(AttrGetById)( nod, TidyAttr_ROWSPAN )
419 
420 #define attrGetROLE( nod ) TY_(AttrGetById)( nod, TidyAttr_ROLE )
421 
422 #define attrGetARIA_ACTIVEDESCENDANT( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_ACTIVEDESCENDANT )
423 #define attrGetARIA_ATOMIC( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_ATOMIC )
424 #define attrGetARIA_AUTOCOMPLETE( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_AUTOCOMPLETE )
425 #define attrGetARIA_BUSY( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_BUSY )
426 #define attrGetARIA_CHECKED( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_CHECKED )
427 #define attrGetARIA_CONTROLS( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_CONTROLS )
428 #define attrGetARIA_DESCRIBEDBY( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_DESCRIBEDBY )
429 #define attrGetARIA_DISABLED( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_DISABLED )
430 #define attrGetARIA_DROPEFFECT( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_DROPEFFECT )
431 #define attrGetARIA_EXPANDED( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_EXPANDED )
432 #define attrGetARIA_FLOWTO( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_FLOWTO )
433 #define attrGetARIA_GRABBED( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_GRABBED )
434 #define attrGetARIA_HASPOPUP( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_HASPOPUP )
435 #define attrGetARIA_HIDDEN( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_HIDDEN )
436 #define attrGetARIA_INVALID( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_INVALID )
437 #define attrGetARIA_LABEL( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_LABEL )
438 #define attrGetARIA_LABELLEDBY( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_LABELLEDBY )
439 #define attrGetARIA_LEVEL( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_LEVEL )
440 #define attrGetARIA_LIVE( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_LIVE )
441 #define attrGetARIA_MULTILINE( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_MULTILINE )
442 #define attrGetARIA_MULTISELECTABLE( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_MULTISELECTABLE )
443 #define attrGetARIA_ORIENTATION( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_ORIENTATION )
444 #define attrGetARIA_OWNS( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_OWNS )
445 #define attrGetARIA_POSINSET( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_POSINSET )
446 #define attrGetARIA_PRESSED( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_PRESSED )
447 #define attrGetARIA_READONLY( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_READONLY )
448 #define attrGetARIA_RELEVANT( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_RELEVANT )
449 #define attrGetARIA_REQUIRED( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_REQUIRED )
450 #define attrGetARIA_SELECTED( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_SELECTED )
451 #define attrGetARIA_SETSIZE( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_SETSIZE )
452 #define attrGetARIA_SORT( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_SORT )
453 #define attrGetARIA_VALUEMAX( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_VALUEMAX )
454 #define attrGetARIA_VALUEMIN( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_VALUEMIN )
455 #define attrGetARIA_VALUENOW( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_VALUENOW )
456 #define attrGetARIA_VALUETEXT( nod ) TY_(AttrGetById)( nod, TidyAttr_ARIA_VALUETEXT )
457 
458 #endif /* __ATTRS_H__ */
Anchor * anchor_hash[ANCHOR_HASH_SIZE]
Definition: attrs.h:66
Definition: attrs.h:63
AttrCheck * attrchk
Definition: attrs.h:20
Definition: attrs.h:46
char * name
Definition: attrs.h:34
struct _Attribute * next
Definition: attrs.h:22
Attribute const * attr
Definition: attrs.h:51
TidyAttrId
Known HTML attributes.
Definition: tidyenum.h:474
Node * node
Definition: attrs.h:33
void() AttrCheck(TidyDocImpl *doc, Node *node, AttVal *attval)
Definition: attrs.h:14
const tmbchar * ctmbstr
Definition: tidyplatform.h:556
Bool
Definition: tidyplatform.h:593
tmbstr name
Definition: attrs.h:19
struct _Anchor * next
Definition: attrs.h:32
Definition: attrs.h:16
TidyAttrSortStrategy
Mode controlling treatment of sorting attributes.
Definition: tidyenum.h:231
tmbchar * tmbstr
Definition: tidyplatform.h:555
AttrHash * hashtab[ATTRIBUTE_HASH_SIZE]
Definition: attrs.h:72
unsigned int uint
Definition: tidyplatform.h:525
TidyAttrId id
Definition: attrs.h:18
Definition: attrs.h:30
#define TY_(str)
Definition: forward.h:23
Attribute * declared_attr_list
Definition: attrs.h:69
struct _AttrHash * next
Definition: attrs.h:52
Definition: attrs.h:60
Definition: attrs.h:49