@@ -137,10 +137,13 @@ export function getHTML5TagProvider(): IHTMLTagProvider {
137
137
dialog : [ 'open:v' ]
138
138
} ;
139
139
140
- var globalAttributes = [ 'accesskey' , 'class' , 'contenteditable:b' , 'contextmenu' , 'dir:d' , 'draggable:a' , 'dropzone' , 'hidden:v' , 'id' , 'inert:v' , 'itemid' , 'itemprop' , 'itemref' , 'itemscope:v' , 'itemtype' ,
141
- 'lang' , 'role' , 'spellcheck:b' , 'style' , 'tabindex' , 'title' , 'translate' ] ;
142
-
143
- // todo@Martin : aria
140
+ var globalAttributes = [
141
+ 'aria-activedescendant' , 'aria-atomic:b' , 'aria-autocomplete:autocomplete' , 'aria-busy:b' , 'aria-checked:tristate' , 'aria-controls' , 'aria-describedby' , 'aria-disabled:b' ,
142
+ 'aria-dropeffect:dropeffect' , 'aria-expanded:u' , 'aria-flowto' , 'aria-grabbed:u' , 'aria-haspopup:b' , 'aria-hidden:b' , 'aria-invalid:invalid' , 'aria-label' , 'aria-labelledby' ,
143
+ 'aria-level' , 'aria-live:live' , 'aria-multiline:b' , 'aria-multiselectable:b' , 'aria-orientation:orientation' , 'aria-owns' , 'aria-posinset' , 'aria-pressed:tristate' , 'aria-readonly:b' ,
144
+ 'aria-relevant:relevant' , 'aria-required:b' , 'aria-selected:u' , 'aria-setsize' , 'aria-sort:sort' , 'aria-valuemax' , 'aria-valuemin' , 'aria-valuenow' , 'aria-valuetext' , 'accesskey' ,
145
+ 'class' , 'contenteditable:b' , 'contextmenu' , 'dir:d' , 'draggable:a' , 'dropzone' , 'hidden:v' , 'id' , 'inert:v' , 'itemid' , 'itemprop' , 'itemref' , 'itemscope:v' , 'itemtype' , 'lang' , 'role' ,
146
+ 'spellcheck:b' , 'style' , 'tabindex' , 'title' , 'translate' ] ;
144
147
145
148
var eventHandlers = [ 'onabort' , 'onblur' , 'oncanplay' , 'oncanplaythrough' , 'onchange' , 'onclick' , 'oncontextmenu' , 'ondblclick' , 'ondrag' , 'ondragend' , 'ondragenter' , 'ondragleave' , 'ondragover' , 'ondragstart' ,
146
149
'ondrop' , 'ondurationchange' , 'onemptied' , 'onended' , 'onerror' , 'onfocus' , 'onformchange' , 'onforminput' , 'oninput' , 'oninvalid' , 'onkeydown' , 'onkeypress' , 'onkeyup' , 'onload' , 'onloadeddata' , 'onloadedmetadata' ,
@@ -150,12 +153,21 @@ export function getHTML5TagProvider(): IHTMLTagProvider {
150
153
var valueSets : { [ tag :string ] : string [ ] } = {
151
154
b : [ 'true' , 'false' ] ,
152
155
a : [ 'true' , 'false' , 'auto' ] ,
156
+ u : [ 'true' , 'false' , 'undefined' ] ,
153
157
d : [ 'ltr' , 'rtl' ] ,
154
158
m : [ 'get' , 'post' ] ,
155
159
o : [ 'on' , 'off' ] ,
156
160
t : [ 'hidden' , 'text' , 'search' , 'tel' , 'url' , 'email' , 'password' , 'datetime' , 'date' , 'month' , 'week' , 'time' , 'datetime-local' , 'number' , 'range' , 'color' , 'checkbox' , 'radio' , 'file' , 'submit' , 'image' , 'reset' , 'button' ] ,
157
161
bt : [ 'button' , 'submit' , 'reset' ] ,
158
- xo : [ 'anonymous' , 'use-credentials' ]
162
+ xo : [ 'anonymous' , 'use-credentials' ] ,
163
+ tristate : [ 'true' , 'false' , 'mixed' , 'undefined' ] ,
164
+ autocomplete : [ 'inline' , 'list' , 'both' , 'none' ] ,
165
+ dropeffect : [ 'copy' , 'move' , 'link' , 'execute' , 'popup' , 'none' ] ,
166
+ invalid : [ 'grammar' , 'false' , 'spelling' , 'true' ] ,
167
+ live : [ 'off' , 'polite' , 'assertive' ] ,
168
+ orientation : [ 'vertical' , 'horizontal' ] ,
169
+ relevant : [ 'additions' , 'removals' , 'text' , 'all' , 'additions text' ] ,
170
+ sort : [ 'ascending' , 'descending' , 'none' , 'other' ]
159
171
} ;
160
172
161
173
return {
0 commit comments