Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/accessibility/ARIAConfig.js

Issue 2962673003: [DevTools] Bring ARIA config up to date with ARIA 1.1 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Accessibility.ARIAMetadata._config = { 1 Accessibility.ARIAMetadata._config = {
lushnikov 2017/06/28 18:19:05 shouldn't we have a LICENSE here? Also, how do yo
aboxhall 2017/06/28 21:04:49 Oops, not sure how that was missed originally. Wi
2 'attributes': { 2 'attributes': {
3 'aria-activedescendant': {'type': 'IDREF'}, 3 'aria-activedescendant': {'type': 'IDREF'},
4 'aria-atomic': {'default': 'false', 'type': 'boolean'}, 4 'aria-atomic': {'default': 'false', 'type': 'boolean'},
5 'aria-autocomplete': {'default': 'none', 'enum': ['inline', 'list', 'both', 'none'], 'type': 'token'}, 5 'aria-autocomplete': {'default': 'none', 'enum': ['inline', 'list', 'both', 'none'], 'type': 'token'},
6 'aria-busy': {'default': 'false', 'type': 'boolean'}, 6 'aria-busy': {'default': 'false', 'type': 'boolean'},
7 'aria-checked': {'default': 'undefined', 'enum': ['true', 'false', 'mixed', 'undefined'], 'type': 'token'}, 7 'aria-checked': {'default': 'undefined', 'enum': ['true', 'false', 'mixed', 'undefined'], 'type': 'token'},
8 'aria-colcount': {'type': 'integer'},
9 'aria-colindex': {'type': 'integer'},
10 'aria-colspan': {'type': 'integer'},
8 'aria-controls': {'type': 'IDREF_list'}, 11 'aria-controls': {'type': 'IDREF_list'},
12 'aria-current':
13 {'default': 'false', 'enum': ['page', 'step', 'location', 'date', 'time' , 'true', 'false'], 'type': 'token'},
9 'aria-describedby': {'type': 'IDREF_list'}, 14 'aria-describedby': {'type': 'IDREF_list'},
15 'aria-details': {'type': 'IDREF'},
10 'aria-disabled': {'default': 'false', 'type': 'boolean'}, 16 'aria-disabled': {'default': 'false', 'type': 'boolean'},
11 'aria-dropeffect': 17 'aria-dropeffect':
12 {'default': 'none', 'enum': ['copy', 'move', 'link', 'execute', 'popup', 'none'], 'type': 'token_list'}, 18 {'default': 'none', 'enum': ['copy', 'move', 'link', 'execute', 'popup', 'none'], 'type': 'token_list'},
19 'aria-errormessage': {'type': 'IDREF'},
13 'aria-expanded': {'default': 'undefined', 'enum': ['true', 'false', 'undefin ed'], 'type': 'token'}, 20 'aria-expanded': {'default': 'undefined', 'enum': ['true', 'false', 'undefin ed'], 'type': 'token'},
14 'aria-flowto': {'type': 'IDREF_list'}, 21 'aria-flowto': {'type': 'IDREF_list'},
15 'aria-grabbed': {'default': 'undefined', 'enum': ['true', 'false', 'undefine d'], 'type': 'token'}, 22 'aria-grabbed': {'default': 'undefined', 'enum': ['true', 'false', 'undefine d'], 'type': 'token'},
16 'aria-haspopup': {'default': 'false', 'type': 'boolean'}, 23 'aria-haspopup':
17 'aria-hidden': {'default': 'false', 'type': 'boolean'}, 24 {'default': 'false', 'enum': ['false', 'true', 'menu', 'listbox', 'tree' , 'grid', 'dialog'], 'type': 'token'},
25 'aria-hidden': {'default': 'undefined', 'enum': ['true', 'false', 'undefined '], 'type': 'token'},
aleventhal 2017/06/29 20:18:13 Is there special logic somewhere so that 'undefine
aboxhall 2017/06/29 23:58:27 Hm, the spec says: The "undefined" value, when al
18 'aria-invalid': {'default': 'false', 'enum': ['grammar', 'false', 'spelling' , 'true'], 'type': 'token'}, 26 'aria-invalid': {'default': 'false', 'enum': ['grammar', 'false', 'spelling' , 'true'], 'type': 'token'},
27 'aria-keyshortcuts': {'type': 'string'},
19 'aria-label': {'type': 'string'}, 28 'aria-label': {'type': 'string'},
20 'aria-labelledby': {'type': 'IDREF_list'}, 29 'aria-labelledby': {'type': 'IDREF_list'},
21 'aria-level': {'type': 'integer'}, 30 'aria-level': {'type': 'integer'},
22 'aria-live': {'default': 'off', 'enum': ['off', 'polite', 'assertive'], 'typ e': 'token'}, 31 'aria-live': {'default': 'off', 'enum': ['off', 'polite', 'assertive'], 'typ e': 'token'},
32 'aria-modal': {'default': 'false', 'type': 'boolean'},
23 'aria-multiline': {'default': 'false', 'type': 'boolean'}, 33 'aria-multiline': {'default': 'false', 'type': 'boolean'},
24 'aria-multiselectable': {'default': 'false', 'type': 'boolean'}, 34 'aria-multiselectable': {'default': 'false', 'type': 'boolean'},
25 'aria-orientation': {'default': 'vertical', 'enum': ['horizontal', 'vertical '], 'type': 'token'}, 35 'aria-orientation': {'default': 'undefined', 'enum': ['horizontal', 'undefin ed', 'vertical'], 'type': 'token'},
26 'aria-owns': {'type': 'IDREF_list'}, 36 'aria-owns': {'type': 'IDREF_list'},
37 'aria-placeholder': {'type': 'string'},
27 'aria-posinset': {'type': 'integer'}, 38 'aria-posinset': {'type': 'integer'},
28 'aria-pressed': {'default': 'undefined', 'enum': ['true', 'false', 'mixed', 'undefined'], 'type': 'token'}, 39 'aria-pressed': {'default': 'undefined', 'enum': ['true', 'false', 'mixed', 'undefined'], 'type': 'token'},
29 'aria-readonly': {'default': 'false', 'type': 'boolean'}, 40 'aria-readonly': {'default': 'false', 'type': 'boolean'},
30 'aria-relevant': 41 'aria-relevant':
31 {'default': 'additions text', 'enum': ['additions', 'removals', 'text', 'all'], 'type': 'token_list'}, 42 {'default': 'additions text', 'enum': ['additions', 'removals', 'text', 'all'], 'type': 'token_list'},
32 'aria-required': {'default': 'false', 'type': 'boolean'}, 43 'aria-required': {'default': 'false', 'type': 'boolean'},
44 'aria-roledescription': {'type': 'string'},
45 'aria-rowcount': {'type': 'integer'},
46 'aria-rowindex': {'type': 'integer'},
47 'aria-rowspan': {'type': 'integer'},
33 'aria-selected': {'default': 'undefined', 'enum': ['true', 'false', 'undefin ed'], 'type': 'token'}, 48 'aria-selected': {'default': 'undefined', 'enum': ['true', 'false', 'undefin ed'], 'type': 'token'},
34 'aria-setsize': {'type': 'integer'}, 49 'aria-setsize': {'type': 'integer'},
35 'aria-sort': {'default': 'none', 'enum': ['ascending', 'descending', 'none', 'other'], 'type': 'token'}, 50 'aria-sort': {'default': 'none', 'enum': ['ascending', 'descending', 'none', 'other'], 'type': 'token'},
36 'aria-valuemax': {'type': 'decimal'}, 51 'aria-valuemax': {'type': 'decimal'},
37 'aria-valuemin': {'type': 'decimal'}, 52 'aria-valuemin': {'type': 'decimal'},
38 'aria-valuenow': {'type': 'decimal'}, 53 'aria-valuenow': {'type': 'decimal'},
39 'aria-valuetext': {'type': 'string'}, 54 'aria-valuetext': {'type': 'string'},
40 'tabindex': {'type': 'integer'} 55 'tabindex': {'type': 'integer'}
41 }, 56 },
42 'roles': { 57 'roles': {
43 'alert': {'nameFrom': ['author'], 'superclasses': ['region']}, 58 'alert': {
44 'alertdialog': {'nameFrom': ['author'], 'superclasses': ['alert', 'dialog']} , 59 'nameFrom': ['author'],
45 'application': {'nameFrom': ['author'], 'superclasses': ['landmark']}, 60 'superclasses': ['section'],
46 'article': {'nameFrom': ['author'], 'superclasses': ['document', 'region']}, 61 'implicitValues': {'aria-live': 'assertive ', 'aria-atomic': 'true'}
aleventhal 2017/06/29 20:18:13 There is a space in 'assertive '
aboxhall 2017/06/29 23:58:27 Done.
62 },
63 'alertdialog': {'nameFrom': ['author'], 'superclasses': ['alert', 'dialog'], 'nameRequired': true},
64 'application': {'nameFrom': ['author'], 'superclasses': ['structure'], 'name Required': true},
65 'article': {
66 'nameFrom': ['author'],
67 'superclasses': ['document'],
68 'supportedAttributes': ['aria-posinset', 'aria-setsize']
69 },
47 'banner': {'nameFrom': ['author'], 'superclasses': ['landmark']}, 70 'banner': {'nameFrom': ['author'], 'superclasses': ['landmark']},
48 'button': { 71 'button': {
49 'nameFrom': ['contents', 'author'], 72 'nameFrom': ['contents', 'author'],
50 'superclasses': ['command'], 73 'superclasses': ['command'],
51 'supportedAttributes': ['aria-expanded', 'aria-pressed'] 74 'supportedAttributes': ['aria-expanded', 'aria-pressed'],
75 'nameRequired': true,
76 'childrenPresentational': true
52 }, 77 },
53 'checkbox': {'nameFrom': ['contents', 'author'], 'requiredAttributes': ['ari a-checked'], 'superclasses': ['input']}, 78 'cell': {
79 'namefrom': ['contents', 'author'],
80 'scope': 'row',
81 'superclasses': ['section'],
82 'supportedAttributes': ['aria-colindex', 'aria-colspan', 'aria-rowindex', 'aria-rowspan']
83 },
84 'checkbox': {
85 'nameFrom': ['contents', 'author'],
86 'requiredAttributes': ['aria-checked'],
87 'superclasses': ['input'],
88 'supportedAttributes': ['aria-readonly'],
89 'nameRequired': true,
90 'childrenPresentational': true,
91 'implicitValues': {'aria-checked': false}
92 },
54 'columnheader': { 93 'columnheader': {
55 'nameFrom': ['contents', 'author'], 94 'nameFrom': ['contents', 'author'],
56 'scope': ['row'], 95 'scope': ['row'],
57 'superclasses': ['gridcell', 'sectionhead', 'widget'], 96 'superclasses': ['gridcell', 'sectionhead', 'widget'],
58 'supportedAttributes': ['aria-sort'] 97 'supportedAttributes': ['aria-sort'],
98 'nameRequired': true
59 }, 99 },
60 'combobox': { 100 'combobox': {
aleventhal 2017/06/29 20:18:13 Note: according to @nektarios, we have implemented
aboxhall 2017/06/29 23:58:27 Added TODO to follow up.
61 'mustContain': ['listbox', 'textbox'], 101 'mustContain': ['textbox'],
62 'nameFrom': ['author'], 102 'nameFrom': ['author'],
63 'requiredAttributes': ['aria-expanded'], 103 'requiredAttributes': ['aria-controls', 'aria-expanded'],
64 'superclasses': ['select'], 104 'superclasses': ['select'],
65 'supportedAttributes': ['aria-autocomplete', 'aria-required'] 105 'supportedAttributes': ['aria-autocomplete', 'aria-readonly', 'aria-requir ed'],
106 'nameRequired': true,
107 'implicitValues': {'aria-expanded': 'false', 'aria-haspopup': 'listbox'}
66 }, 108 },
67 'command': {'abstract': true, 'nameFrom': ['author'], 'superclasses': ['widg et']}, 109 'command': {'abstract': true, 'nameFrom': ['author'], 'superclasses': ['widg et']},
68 'complementary': {'nameFrom': ['author'], 'superclasses': ['landmark']}, 110 'complementary': {'nameFrom': ['author'], 'superclasses': ['landmark']},
69 'composite': { 111 'composite': {
70 'abstract': true, 112 'abstract': true,
71 'nameFrom': ['author'], 113 'nameFrom': ['author'],
72 'superclasses': ['widget'], 114 'superclasses': ['widget'],
73 'supportedAttributes': ['aria-activedescendant'], 115 'supportedAttributes': ['aria-activedescendant'],
74 }, 116 },
75 'contentinfo': {'nameFrom': ['author'], 'superclasses': ['landmark']}, 117 'contentinfo': {'nameFrom': ['author'], 'superclasses': ['landmark']},
76 'definition': {'nameFrom': ['author'], 'superclasses': ['section']}, 118 'definition': {'nameFrom': ['author'], 'superclasses': ['section']},
77 'dialog': {'nameFrom': ['author'], 'superclasses': ['window']}, 119 'dialog': {'nameFrom': ['author'], 'superclasses': ['window'], 'nameRequired ': true},
78 'directory': {'nameFrom': ['contents', 'author'], 'superclasses': ['list']}, 120 'directory': {'nameFrom': ['author'], 'superclasses': ['list']},
79 'document': {'nameFrom': ['author'], 'superclasses': ['structure'], 'support edAttributes': ['aria-expanded']}, 121 'document': {
122 'nameFrom': ['author'],
123 'superclasses': ['structure'],
124 'supportedAttributes': ['aria-expanded'],
125 'nameRequired': true
126 },
127 'feed': {'nameFrom': ['author'], 'superclasses': ['list'], 'mustContain': [' article'], 'nameRequired': false},
128 'figure': {'namefrom': ['author'], 'superclasses': ['section'], 'nameRequire d': false},
80 'form': {'nameFrom': ['author'], 'superclasses': ['landmark']}, 129 'form': {'nameFrom': ['author'], 'superclasses': ['landmark']},
81 'grid': { 130 'grid': {
82 'mustContain': ['row', 'rowgroup', 'row'],
83 'nameFrom': ['author'], 131 'nameFrom': ['author'],
84 'superclasses': ['composite', 'region'], 132 'superclasses': ['composite', 'table'],
85 'supportedAttributes': ['aria-level', 'aria-multiselectable', 'aria-readon ly'] 133 'mustContain': ['row'],
134 'supportedAttributes': ['aria-level', 'aria-multiselectable', 'aria-readon ly'],
135 'nameRequired': true
86 }, 136 },
87 'gridcell': { 137 'gridcell': {
88 'nameFrom': ['contents', 'author'], 138 'nameFrom': ['contents', 'author'],
89 'scope': ['row'], 139 'scope': ['row'],
90 'superclasses': ['section', 'widget'], 140 'superclasses': ['cell', 'widget'],
91 'supportedAttributes': ['aria-readonly', 'aria-required', 'aria-selected'] 141 'supportedAttributes': ['aria-readonly', 'aria-required', 'aria-selected'] ,
142 'nameRequired': true
92 }, 143 },
93 'group': {'nameFrom': ['author'], 'superclasses': ['section'], 'supportedAtt ributes': ['aria-activedescendant']}, 144 'group': {'nameFrom': ['author'], 'superclasses': ['section'], 'supportedAtt ributes': ['aria-activedescendant']},
94 'heading': {'superclasses': ['sectionhead'], 'supportedAttributes': ['aria-l evel']}, 145 'heading': {
95 'img': {'nameFrom': ['author'], 'superclasses': ['section']}, 146 'namefrom': ['contents', 'author'],
147 'superclasses': ['sectionhead'],
148 'supportedAttributes': ['aria-level'],
149 'nameRequired': true,
150 'implicitValues': {'aria-level': '2'}
151 },
152 'img': {'nameFrom': ['author'], 'superclasses': ['section'], 'nameRequired': true, 'childrenPresentational': true},
96 'input': {'abstract': true, 'nameFrom': ['author'], 'superclasses': ['widget ']}, 153 'input': {'abstract': true, 'nameFrom': ['author'], 'superclasses': ['widget ']},
97 'landmark': {'abstract': true, 'nameFrom': ['contents', 'author'], 'supercla sses': ['region']}, 154 'landmark':
98 'link': {'nameFrom': ['contents', 'author'], 'superclasses': ['command'], 's upportedAttributes': ['aria-expanded']}, 155 {'abstract': true, 'nameFrom': ['contents', 'author'], 'superclasses': [ 'section'], 'nameRequired': false},
99 'list': {'mustContain': ['group', 'listitem', 'listitem'], 'nameFrom': ['aut hor'], 'superclasses': ['region']}, 156 'link': {
157 'nameFrom': ['contents', 'author'],
158 'superclasses': ['command'],
159 'supportedAttributes': ['aria-expanded'],
160 'nameRequired': true
161 },
162 'list': {
163 'mustContain': ['listitem'],
164 'nameFrom': ['author'],
165 'superclasses': ['section'],
166 'nameRequired': true,
167 'implicitValues': {'aria-orientation': 'vertical'}
168 },
100 'listbox': { 169 'listbox': {
170 'nameFrom': ['author'],
171 'superclasses': ['select'],
101 'mustContain': ['option'], 172 'mustContain': ['option'],
102 'nameFrom': ['author'], 173 'supportedAttributes': ['aria-multiselectable', 'aria-readonly', 'aria-req uired'],
103 'superclasses': ['list', 'select'], 174 'nameRequired': true,
104 'supportedAttributes': ['aria-multiselectable', 'aria-required'] 175 'implicitValues': {'aria-orientation': 'vertical'},
105 }, 176 },
106 'listitem': { 177 'listitem': {
107 'nameFrom': ['contents', 'author'], 178 'nameFrom': ['author'],
108 'scope': ['list'],
109 'superclasses': ['section'], 179 'superclasses': ['section'],
180 'scope': ['group', 'list'],
110 'supportedAttributes': ['aria-level', 'aria-posinset', 'aria-setsize'] 181 'supportedAttributes': ['aria-level', 'aria-posinset', 'aria-setsize']
111 }, 182 },
112 'log': {'nameFrom': ['author'], 'superclasses': ['region']}, 183 'log': {
184 'nameFrom': ['author'],
185 'superclasses': ['region'],
186 'nameRequired': true,
187 'implicitValues': {'aria-live': 'polite'}
188 },
113 'main': {'nameFrom': ['author'], 'superclasses': ['landmark']}, 189 'main': {'nameFrom': ['author'], 'superclasses': ['landmark']},
114 'marquee': {'superclasses': ['section']}, 190 'marquee': {'nameFrom': ['author'], 'superclasses': ['section'], 'nameRequir ed': true},
115 'math': {'nameFrom': ['author'], 'superclasses': ['section']}, 191 'math': {'nameFrom': ['author'], 'superclasses': ['section'], 'nameRequired' : true},
116 'menu': { 192 'menu': {
117 'mustContain': ['group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menuitemradio'], 193 'mustContain': ['group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menuitemradio'],
118 'nameFrom': ['author'], 194 'nameFrom': ['author'],
119 'superclasses': ['list', 'select'] 195 'superclasses': ['select'],
196 'implicitValues': {'aria-orientation': 'vertical'}
120 }, 197 },
121 'menubar': {'nameFrom': ['author'], 'superclasses': ['menu']}, 198 'menubar': {
122 'menuitem': {'nameFrom': ['contents', 'author'], 'scope': ['menu', 'menubar' ], 'superclasses': ['command']}, 199 'nameFrom': ['author'],
123 'menuitemcheckbox': 200 'superclasses': ['menu'],
124 {'nameFrom': ['contents', 'author'], 'scope': ['menu', 'menubar'], 'supe rclasses': ['checkbox', 'menuitem']}, 201 'mustContain': ['group', 'menuitem', 'menuitemradio', 'menuitemcheckbox'],
202 'implicitValues': {'aria-orientation': 'horizontal'}
203 },
204 'menuitem': {
205 'nameFrom': ['contents', 'author'],
206 'scope': ['group', 'menu', 'menubar'],
207 'superclasses': ['command'],
208 'nameRequired': true
209 },
210 'menuitemcheckbox': {
211 'nameFrom': ['contents', 'author'],
212 'scope': ['menu', 'menubar'],
213 'superclasses': ['checkbox', 'menuitem'],
214 'nameRequired': true,
215 'childrenPresentational': true,
216 'implicitValues': {'aria-checked': false}
217 },
125 'menuitemradio': { 218 'menuitemradio': {
126 'nameFrom': ['contents', 'author'], 219 'nameFrom': ['contents', 'author'],
127 'scope': ['menu', 'menubar'], 220 'scope': ['menu', 'menubar', 'group'],
128 'superclasses': ['menuitemcheckbox', 'radio'] 221 'superclasses': ['menuitemcheckbox', 'radio'],
222 'nameRequired': true,
223 'childrenPresentational': true,
224 'implicitValues': {'aria-checked': false}
129 }, 225 },
130 'navigation': {'nameFrom': ['author'], 'superclasses': ['landmark']}, 226 'navigation': {'nameFrom': ['author'], 'superclasses': ['landmark']},
227 'none': {'superclasses': ['structure']},
131 'note': {'nameFrom': ['author'], 'superclasses': ['section']}, 228 'note': {'nameFrom': ['author'], 'superclasses': ['section']},
132 'option': { 229 'option': {
133 'nameFrom': ['contents', 'author'], 230 'nameFrom': ['contents', 'author'],
231 'scope': ['listbox'],
134 'superclasses': ['input'], 232 'superclasses': ['input'],
135 'supportedAttributes': ['aria-checked', 'aria-posinset', 'aria-selected', 'aria-setsize'] 233 'requiredAttributes': ['aria-selected'],
234 'supportedAttributes': ['aria-checked', 'aria-posinset', 'aria-setsize'],
235 'nameRequired': true,
236 'childrenPresentational': true,
237 'implicitValues': {'aria-selected': 'false'}
136 }, 238 },
137 'presentation': {'superclasses': ['structure']}, 239 'presentation': {'superclasses': ['structure']},
138 'progressbar': {'nameFrom': ['author'], 'superclasses': ['range']}, 240 'progressbar':
139 'radio': {'nameFrom': ['contents', 'author'], 'superclasses': ['checkbox', ' option']}, 241 {'nameFrom': ['author'], 'superclasses': ['range'], 'nameRequired': true , 'childrenPresentational': true},
242 'radio': {
243 'nameFrom': ['contents', 'author'],
244 'superclasses': ['input'],
245 'requiredAttributes': ['aria-checked'],
246 'supportedAttributes': ['aria-posinset', 'aria-setsize'],
247 'nameRequired': true,
248 'childrenPresentational': true,
249 'implicitValues': {'aria-checked': 'false'}
250 },
140 'radiogroup': { 251 'radiogroup': {
141 'mustContain': ['radio'],
142 'nameFrom': ['author'], 252 'nameFrom': ['author'],
143 'superclasses': ['select'], 253 'superclasses': ['select'],
144 'supportedAttributes': ['aria-required'] 254 'mustContain': ['radio'],
255 'supportedAttributes': ['aria-readonly', 'aria-required'],
256 'nameRequired': true
145 }, 257 },
146 'range': { 258 'range': {
147 'abstract': true, 259 'abstract': true,
148 'nameFrom': ['author'], 260 'nameFrom': ['author'],
149 'superclasses': ['widget'], 261 'superclasses': ['widget'],
150 'supportedAttributes': ['aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext'] 262 'supportedAttributes': ['aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext']
151 }, 263 },
152 'region': {'nameFrom': ['author'], 'superclasses': ['section']}, 264 'region': {'nameFrom': ['author'], 'superclasses': ['landmark'], 'nameRequir ed': true},
153 'roletype': { 265 'roletype': {
154 'abstract': true, 266 'abstract': true,
155 'supportedAttributes': [ 267 'supportedAttributes': [
156 'aria-atomic', 'aria-busy', 'aria-controls', 'aria-describedby', 'aria-d isabled', 'aria-dropeffect', 268 'aria-atomic', 'aria-busy', 'aria-controls', 'aria-current ', 'aria-describedby', 'aria-details',
157 'aria-flowto', 'aria-grabbed', 'aria-haspopup', 'aria-hidden', 'aria-inv alid', 'aria-label', 'aria-labelledby', 269 'aria-disabled', 'aria-dropeffect', 'aria-errormessage', 'aria-flowto' , 'aria-grabbed', 'aria-haspopup',
158 'aria-live', 'aria-owns', 'aria-relevant' 270 'aria-hidden', 'aria-invalid', 'aria-keyshortcuts', 'aria-label', 'aria-labelledby', 'aria-live',
271 'aria-owns', 'aria-relevant', 'aria-roledescription'
159 ] 272 ]
160 }, 273 },
161 'row': { 274 'row': {
162 'mustContain': ['columnheader', 'gridcell', 'rowheader'],
163 'nameFrom': ['contents', 'author'], 275 'nameFrom': ['contents', 'author'],
164 'scope': ['grid', 'rowgroup', 'treegrid'],
165 'superclasses': ['group', 'widget'], 276 'superclasses': ['group', 'widget'],
166 'supportedAttributes': ['aria-level', 'aria-selected'] 277 'mustContain': ['cell', 'columnheader', 'gridcell', 'rowheader'],
278 'scope': ['grid', 'rowgroup', 'table', 'treegrid'],
279 'supportedAttributes': ['aria-colindex', 'aria-level', 'aria-rowindex', 'a ria-selected']
167 }, 280 },
168 'rowgroup': 281 'rowgroup': {
169 {'mustContain': ['row'], 'nameFrom': ['contents', 'author'], 'scope': [' grid'], 'superclasses': ['group']}, 282 'nameFrom': ['contents', 'author'],
283 'superclasses': ['structure'],
284 'mustContain': ['row'],
285 'scope': ['grid', 'table', 'treegrid'],
286 },
170 'rowheader': { 287 'rowheader': {
171 'nameFrom': ['contents', 'author'], 288 'nameFrom': ['contents', 'author'],
172 'scope': ['row'], 289 'scope': ['row'],
173 'superclasses': ['gridcell', 'sectionhead', 'widget'], 290 'superclasses': ['cell', 'gridcell', 'sectionhead'],
174 'supportedAttributes': ['aria-sort'] 291 'supportedAttributes': ['aria-sort'],
292 'nameRequired': true
175 }, 293 },
176 'scrollbar': { 294 'scrollbar': {
177 'nameFrom': ['author'], 295 'nameFrom': ['author'],
178 'requiredAttributes': ['aria-controls', 'aria-orientation', 'aria-valuemax ', 'aria-valuemin', 'aria-valuenow'], 296 'requiredAttributes': ['aria-controls', 'aria-orientation', 'aria-valuemax ', 'aria-valuemin', 'aria-valuenow'],
179 'superclasses': ['input', 'range'] 297 'superclasses': ['range'],
298 'nameRequired': false,
299 'childrenPresentational': true,
300 'implicitValues': {'aria-orientation': 'vertical', 'aria-valuemin': '0', ' aria-valuemax': '100'}
180 }, 301 },
181 'search': {'nameFrom': ['author'], 'superclasses': ['landmark']}, 302 'search': {'nameFrom': ['author'], 'superclasses': ['landmark']},
182 'section': { 303 'searchbox': {'nameFrom': ['author'], 'superclasses': ['textbox'], 'nameRequ ired': true},
183 'abstract': true, 304 'section': {'abstract': true, 'superclasses': ['structure'], 'supportedAttri butes': ['aria-expanded']},
184 'nameFrom': ['contents', 'author'],
185 'superclasses': ['structure'],
186 'supportedAttributes': ['aria-expanded']
187 },
188 'sectionhead': { 305 'sectionhead': {
189 'abstract': true, 306 'abstract': true,
190 'nameFrom': ['contents', 'author'], 307 'nameFrom': ['contents', 'author'],
191 'superclasses': ['structure'], 308 'superclasses': ['structure'],
192 'supportedAttributes': ['aria-expanded'] 309 'supportedAttributes': ['aria-expanded']
193 }, 310 },
194 'select': {'abstract': true, 'nameFrom': ['author'], 'superclasses': ['compo site', 'group', 'input']}, 311 'select': {'abstract': true, 'nameFrom': ['author'], 'superclasses': ['compo site', 'group']},
195 'separator': { 312 // TODO(aboxhall): separator properties depend on focusability
196 'nameFrom': ['author'], 313 'separator': {'nameFrom': ['author'], 'superclasses': ['structure'], 'suppor tedAttributes': ['aria-orientation']},
197 'superclasses': ['structure'],
198 'supportedAttributes': ['aria-expanded', 'aria-orientation']
199 },
200 'slider': { 314 'slider': {
201 'nameFrom': ['author'], 315 'nameFrom': ['author'],
202 'requiredAttributes': ['aria-valuemax', 'aria-valuemin', 'aria-valuenow'], 316 'requiredAttributes': ['aria-valuemax', 'aria-valuemin', 'aria-valuenow'],
203 'superclasses': ['input', 'range'], 317 'superclasses': ['input', 'range'],
204 'supportedAttributes': ['aria-orientation'] 318 'supportedAttributes': ['aria-orientation'],
319 'nameRequired': true,
320 'childrenPresentational': true,
321 // TODO(aboxhall): aria-valuenow default is halfway between aria-valuemin and aria-valuemax
322 'implicitValues': {'aria-orientation': 'horizontal', 'aria-valuemin': '0', 'aria-valuemax': '100'}
205 }, 323 },
206 'spinbutton': { 324 'spinbutton': {
207 'nameFrom': ['author'], 325 'nameFrom': ['author'],
208 'requiredAttributes': ['aria-valuemax', 'aria-valuemin', 'aria-valuenow'], 326 'requiredAttributes': ['aria-valuemax', 'aria-valuemin', 'aria-valuenow'],
209 'superclasses': ['input', 'range'], 327 'superclasses': ['composite', 'input', 'range'],
210 'supportedAttributes': ['aria-required'] 328 'supportedAttributes': ['aria-required'],
329 'nameRequired': true,
330 'implicitValues': {'aria-valuenow': '0'}
211 }, 331 },
212 'status': {'superclasses': ['region']}, 332 'status': {
333 'nameFrom': ['author'],
334 'superclasses': ['section'],
335 'implicitValues': {'aria-live': 'polite', 'aria-atomic': 'true'}
336 },
213 'structure': {'abstract': true, 'superclasses': ['roletype']}, 337 'structure': {'abstract': true, 'superclasses': ['roletype']},
338 'switch': {
339 'nameFrom': ['contents', 'author'],
340 'superclasses': ['checkbox'],
341 'requiredAttributes': ['aria-checked'],
342 'nameRequired': true,
343 'childrenPresentational': true,
344 'implicitValues': {'aria-checked': 'false'}
345 },
214 'tab': { 346 'tab': {
215 'nameFrom': ['contents', 'author'], 347 'nameFrom': ['contents', 'author'],
216 'scope': ['tablist'], 348 'scope': ['tablist'],
217 'superclasses': ['sectionhead', 'widget'], 349 'superclasses': ['sectionhead', 'widget'],
218 'supportedAttributes': ['aria-selected'] 350 'supportedAttributes': ['aria-selected'],
351 'childrenPresentational': true,
352 'implicitValues': {'aria-selected': 'false'}
353 },
354 'table': {
355 'nameFrom': ['author'],
356 'superclasses': ['section'],
357 'mustContain': ['row'],
358 'supportedAttributes': ['aria-colcount', 'aria-rowcount'],
359 'nameRequired': true
219 }, 360 },
220 'tablist': { 361 'tablist': {
362 'nameFrom': ['author'],
363 'superclasses': ['composite'],
221 'mustContain': ['tab'], 364 'mustContain': ['tab'],
222 'nameFrom': ['author'], 365 'supportedAttributes': ['aria-level', 'aria-multiselectable', 'aria-orient ation'],
223 'superclasses': ['composite', 'directory'], 366 'implicitValues': {'aria-orientation': 'horizontal'}
224 'supportedAttributes': ['aria-level']
225 }, 367 },
226 'tabpanel': {'nameFrom': ['author'], 'superclasses': ['region']}, 368 'tabpanel': {'nameFrom': ['author'], 'superclasses': ['section'], 'nameRequi red': true},
369 'term': {'nameFrom': ['author'], 'superclasses': ['section']},
227 'textbox': { 370 'textbox': {
228 'nameFrom': ['author'], 371 'nameFrom': ['author'],
229 'superclasses': ['input'], 372 'superclasses': ['input'],
230 'supportedAttributes': 373 'supportedAttributes': [
231 ['aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria -readonly', 'aria-required'] 374 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-pl aceholder', 'aria-readonly',
375 'aria-required'
376 ],
377 'nameRequired': true
232 }, 378 },
233 'timer': {'nameFrom': ['author'], 'superclasses': ['status']}, 379 'timer': {'nameFrom': ['author'], 'superclasses': ['status']},
234 'toolbar': {'nameFrom': ['author'], 'superclasses': ['group']}, 380 'toolbar': {
235 'tooltip': {'superclasses': ['section']}, 381 'nameFrom': ['author'],
382 'superclasses': ['group'],
383 'supportedAttributes': ['aria-orientation'],
384 'implicitValues': {'aria-orientation': 'horizontal'}
385 },
386 'tooltip': {'nameFrom': ['contents', 'author'], 'superclasses': ['section'], 'nameRequired': true},
236 'tree': { 387 'tree': {
237 'mustContain': ['group', 'treeitem', 'treeitem'],
238 'nameFrom': ['author'], 388 'nameFrom': ['author'],
389 'mustContain': ['group', 'treeitem'],
239 'superclasses': ['select'], 390 'superclasses': ['select'],
240 'supportedAttributes': ['aria-multiselectable', 'aria-required'] 391 'supportedAttributes': ['aria-multiselectable', 'aria-required'],
392 'nameRequired': true,
393 'implicitValues': {'aria-orientation': 'vertical'}
241 }, 394 },
242 'treegrid': {'mustContain': ['row'], 'nameFrom': ['author'], 'superclasses': ['grid', 'tree']}, 395 'treegrid':
243 'treeitem': 396 {'mustContain': ['row'], 'nameFrom': ['author'], 'superclasses': ['grid' , 'tree'], 'nameRequired': true},
244 {'nameFrom': ['contents', 'author'], 'scope': ['group', 'tree'], 'superc lasses': ['listitem', 'option']}, 397 'treeitem': {
398 'nameFrom': ['contents', 'author'],
399 'scope': ['group', 'tree'],
400 'superclasses': ['listitem', 'option'],
401 'nameRequired': true
402 },
245 'widget': {'abstract': true, 'superclasses': ['roletype']}, 403 'widget': {'abstract': true, 'superclasses': ['roletype']},
246 'window': { 404 'window': {
247 'abstract': true, 405 'abstract': true,
248 'nameFrom': ['author'], 406 'nameFrom': ['author'],
249 'superclasses': ['roletype'], 407 'superclasses': ['roletype'],
250 'supportedAttributes': ['aria-expanded'] 408 'supportedAttributes': ['aria-expanded', 'aria-modal']
251 } 409 }
252 } 410 }
253 }; 411 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698