Skip to content

Commit 8d68d21

Browse files
author
jmbowman
committed
Merge pull request #1 from andrewle/master
Add support for aria attributes
2 parents 0cf6d99 + 27d8ca6 commit 8d68d21

File tree

4 files changed

+11931
-8082
lines changed

4 files changed

+11931
-8082
lines changed

include/tidyenum.h

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
generated wrappers and COM IDL files.
88
99
Copyright (c) 1998-2008 World Wide Web Consortium
10-
(Massachusetts Institute of Technology, European Research
10+
(Massachusetts Institute of Technology, European Research
1111
Consortium for Informatics and Mathematics, Keio University).
1212
All Rights Reserved.
1313
@@ -16,18 +16,18 @@
1616
Dave Raggett <[email protected]>
1717
1818
The contributing author(s) would like to thank all those who
19-
helped with testing, bug fixes and suggestions for improvements.
19+
helped with testing, bug fixes and suggestions for improvements.
2020
This wouldn't have been possible without your help.
2121
2222
COPYRIGHT NOTICE:
23-
23+
2424
This software and documentation is provided "as is," and
2525
the copyright holders and contributing author(s) make no
2626
representations or warranties, express or implied, including
2727
but not limited to, warranties of merchantability or fitness
2828
for any particular purpose or that the use of the software or
2929
documentation will not infringe any third party patents,
30-
copyrights, trademarks or other rights.
30+
copyrights, trademarks or other rights.
3131
3232
The copyright holders and contributing author(s) will not be held
3333
liable for any direct, indirect, special or consequential damages
@@ -43,7 +43,7 @@
4343
not be misrepresented as being the original source.
4444
3. This Copyright notice may not be removed or altered from any
4545
source or altered source distribution.
46-
46+
4747
The copyright holders and contributing author(s) specifically
4848
permit, without fee, and encourage the use of this source code
4949
as a component for supporting the Hypertext Markup Language in
@@ -86,15 +86,15 @@ typedef enum
8686

8787
TidyCharEncoding, /**< In/out character encoding */
8888
TidyInCharEncoding, /**< Input character encoding (if different) */
89-
TidyOutCharEncoding, /**< Output character encoding (if different) */
89+
TidyOutCharEncoding, /**< Output character encoding (if different) */
9090
TidyNewline, /**< Output line ending (default to platform) */
9191

9292
TidyDoctypeMode, /**< See doctype property */
9393
TidyDoctype, /**< User specified doctype */
9494

9595
TidyDuplicateAttrs, /**< Keep first or last duplicate attribute */
9696
TidyAltText, /**< Default text for alt attribute */
97-
97+
9898
/* obsolete */
9999
TidySlideStyle, /**< Style sheet for slides: not used for anything yet */
100100

@@ -188,7 +188,7 @@ typedef enum
188188
TidyEmptyTags, /**< Declared empty tags */
189189
TidyPreTags, /**< Declared pre tags */
190190

191-
TidyAccessibilityCheckLevel, /**< Accessibility check level
191+
TidyAccessibilityCheckLevel, /**< Accessibility check level
192192
0 (old style), or 1, 2, 3 */
193193

194194
TidyVertSpace, /**< degree to which markup is spread out vertically */
@@ -267,8 +267,8 @@ typedef enum
267267

268268
/* I/O and Message handling interface
269269
**
270-
** By default, Tidy will define, create and use
271-
** instances of input and output handlers for
270+
** By default, Tidy will define, create and use
271+
** instances of input and output handlers for
272272
** standard C buffered I/O (i.e. FILE* stdin,
273273
** FILE* stdout and FILE* stderr for content
274274
** input, content output and diagnostic output,
@@ -279,7 +279,7 @@ typedef enum
279279

280280
/** Message severity level
281281
*/
282-
typedef enum
282+
typedef enum
283283
{
284284
TidyInfo, /**< Information about markup usage */
285285
TidyWarning, /**< Warning message */
@@ -296,7 +296,7 @@ typedef enum
296296

297297
/** Node types
298298
*/
299-
typedef enum
299+
typedef enum
300300
{
301301
TidyNode_Root, /**< Root */
302302
TidyNode_DocType, /**< DOCTYPE */
@@ -738,6 +738,42 @@ typedef enum
738738
TidyAttr_SRCDOC,
739739
TidyAttr_SRCLANG,
740740
TidyAttr_STEP,
741+
TidyAttr_ARIA_ACTIVEDESCENDANT,
742+
TidyAttr_ARIA_ATOMIC,
743+
TidyAttr_ARIA_AUTOCOMPLETE,
744+
TidyAttr_ARIA_BUSY,
745+
TidyAttr_ARIA_CHECKED,
746+
TidyAttr_ARIA_CONTROLS,
747+
TidyAttr_ARIA_DESCRIBEDBY,
748+
TidyAttr_ARIA_DISABLED,
749+
TidyAttr_ARIA_DROPEFFECT,
750+
TidyAttr_ARIA_EXPANDED,
751+
TidyAttr_ARIA_FLOWTO,
752+
TidyAttr_ARIA_GRABBED,
753+
TidyAttr_ARIA_HASPOPUP,
754+
TidyAttr_ARIA_HIDDEN,
755+
TidyAttr_ARIA_INVALID,
756+
TidyAttr_ARIA_LABEL,
757+
TidyAttr_ARIA_LABELLEDBY,
758+
TidyAttr_ARIA_LEVEL,
759+
TidyAttr_ARIA_LIVE,
760+
TidyAttr_ARIA_MULTILINE,
761+
TidyAttr_ARIA_MULTISELECTABLE,
762+
TidyAttr_ARIA_OWNS,
763+
TidyAttr_ARIA_POSINSET,
764+
TidyAttr_ARIA_PRESSED,
765+
TidyAttr_ARIA_READONLY,
766+
TidyAttr_ARIA_RELEVANT,
767+
TidyAttr_ARIA_REQUIRED,
768+
TidyAttr_ARIA_SELECTED,
769+
TidyAttr_ARIA_SETSIZE,
770+
TidyAttr_ARIA_SORT,
771+
TidyAttr_ARIA_VALUEMAX,
772+
TidyAttr_ARIA_VALUEMIN,
773+
TidyAttr_ARIA_VALUENOW,
774+
TidyAttr_ARIA_VALUETEXT,
775+
776+
741777

742778

743779
N_TIDY_ATTRIBS /**< Must be last */
@@ -747,3 +783,4 @@ typedef enum
747783
} /* extern "C" */
748784
#endif
749785
#endif /* __TIDYENUM_H__ */
786+

0 commit comments

Comments
 (0)