HTML Tidy  5.9.15
The HTACG Tidy HTML Project
access.h
Go to the documentation of this file.
1 #ifndef __ACCESS_H__
2 #define __ACCESS_H__
3 
4 /*********************************************************************
5  * carry out accessibility checks
6  *
7  * This module carries out processes for all accessibility checks. It
8  * traverses through all the content within the tree and evaluates the
9  * tags for accessibility.
10  *
11  * To perform the following checks, 'AccessibilityChecks' must be
12  * called AFTER the tree structure has been formed.
13  *
14  * If, in the command prompt or configuration file, there is no
15  * specification of which accessibility priorities to check, then no
16  * accessibility checks will be performed.
17  *
18  * The accessibility checks to perform depending on user's desire:
19  * 1. priority 1
20  * 2. priority 1 & 2
21  * 3. priority 1, 2, & 3
22  *
23  * Reference document: https://www.w3.org/TR/WAI-WEBCONTENT/
24  *
25  * Copyright University of Toronto
26  * Portions (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
27  * See `tidy.h` for the copyright notice.
28  * Programmed by: Mike Lam and Chris Ridpath
29  * Modifications by: Terry Teague (TRT)
30  * Further modifications: consult git log.
31  *********************************************************************/
32 
33 #include "forward.h"
34 
35 
36 enum {
37  TEXTBUF_SIZE=128u
38 };
39 
40 struct _TidyAccessImpl;
41 typedef struct _TidyAccessImpl TidyAccessImpl;
42 
44 {
45  /* gets set from Tidy variable AccessibilityCheckLevel */
46  int PRIORITYCHK; /**< */
47 
48  /* Number of characters that are found within the concatenated text */
49  int counter;
50 
51  /* list of characters in the text nodes found within a container element */
53 
54  /* The list of characters found within one text node */
56 
57  /* Number of frame elements found within a frameset */
58  int numFrames;
59 
60  /* Number of 'longdesc' attributes found within a frameset */
62 
66 
67  /* For 'USEMAP' identifier */
71 
72  /* For tracking nodes that are deleted from the original parse tree - TRT */
73  /* Node *access_tree; */
74 
82  int ForID;
83 
84 };
85 
86 
87 TY_PRIVATE void TY_(AccessibilityChecks)( TidyDocImpl* doc );
88 
89 
90 #endif /* __ACCESS_H__ */
int OtherListElements
Definition: access.h:65
int HasCheckedLongDesc
Definition: access.h:61
@ TEXTBUF_SIZE
Definition: access.h:37
int numFrames
Definition: access.h:58
tmbchar text[TEXTBUF_SIZE]
Definition: access.h:55
int PRIORITYCHK
Definition: access.h:46
int CheckedHeaders
Definition: access.h:63
Bool HasValidFor
Definition: access.h:76
Bool HasInvalidRowHeader
Definition: access.h:80
Bool HasName
Definition: access.h:69
int counter
Definition: access.h:49
int ForID
Definition: access.h:82
Bool HasValidRowHeaders
Definition: access.h:78
Bool HasInvalidColumnHeader
Definition: access.h:81
tmbchar textNode[TEXTBUF_SIZE]
Definition: access.h:52
Bool HasValidId
Definition: access.h:77
Bool HasValidColumnHeaders
Definition: access.h:79
Bool HasMap
Definition: access.h:70
int ListElements
Definition: access.h:64
Bool HasUseMap
Definition: access.h:68
Bool HasTH
Definition: access.h:75
Definition: access.h:44
#define TY_PRIVATE
Definition: forward.h:29
#define TY_(str)
Definition: forward.h:23
Bool
Definition: tidyplatform.h:662
char tmbchar
Definition: tidyplatform.h:621