@@ -53,11 +53,7 @@ type domProps = {
5353 @as ("aria-autocomplete" ) ariaAutocomplete ?: [#inline | #list | #both | #none ],
5454 /* https://www.w3.org/TR/wai-aria-1.1/#valuetype_tristate */
5555 @as ("aria-checked" )
56- ariaChecked ?: [
57- | # "true"
58- | # "false"
59- | #mixed
60- ],
56+ ariaChecked ?: [# "true" | # "false" | #mixed ],
6157 @as ("aria-expanded" )
6258 ariaExpanded ?: bool ,
6359 @as ("aria-haspopup" )
@@ -143,7 +139,7 @@ type domProps = {
143139 contentEditable ?: bool ,
144140 contextMenu ?: string ,
145141 @as ("data-testid" ) dataTestId ?: string ,
146- dir ?: string /* " ltr", " rtl" or " auto" */ ,
142+ dir ?: [ # ltr | # rtl | # auto] ,
147143 draggable ?: bool ,
148144 hidden ?: bool ,
149145 id ?: string ,
@@ -186,11 +182,11 @@ type domProps = {
186182 defer ?: bool ,
187183 disabled ?: bool ,
188184 download ?: string /* should really be either a boolean, signifying presence, or a string */ ,
189- encType ?: string /* "application/x-www-form-urlencoded", "multipart/form-data" or "text/plain" */ ,
185+ encType ?: [ # "application/x-www-form-urlencoded" | # "multipart/form-data" | # "text/plain" ] ,
190186 form ?: string ,
191187 formAction ?: string /* uri */ ,
192- formTarget ?: string /* " _blank", "_self", etc. */ ,
193- formMethod ?: string /* " post", "get", " put" */ ,
188+ formTarget ?: [ # _self | # _blank | # _parent | # _top ] ,
189+ formMethod ?: [ #get | #head | # post | # put | #delete | #connect | #options | #trace | #patch ] ,
194190 headers ?: string ,
195191 height ?: string /* in html5 this can only be a number, but in html4 it can ba a percentage as well */ ,
196192 high ?: int ,
@@ -199,7 +195,7 @@ type domProps = {
199195 htmlFor ?: string /* substitute for "for" */ ,
200196 httpEquiv ?: string /* has a fixed set of possible values */ ,
201197 icon ?: string /* uri? */ ,
202- inputMode ?: string /* "verbatim", "latin", " numeric", etc. */ ,
198+ inputMode ?: [ #none | #text | #decimal | # numeric | #tel | #search | #email | #url ] ,
203199 integrity ?: string ,
204200 keyType ?: string ,
205201 kind ?: string /* has a fixed set of possible values */ ,
@@ -213,7 +209,7 @@ type domProps = {
213209 maxLength ?: int ,
214210 media ?: string /* a valid media query */ ,
215211 mediaGroup ?: string ,
216- method ?: string /* " post" or " get" */ ,
212+ method ?: [ # post | # get | #dialog ] ,
217213 min ?: string ,
218214 minLength ?: int ,
219215 multiple ?: bool ,
0 commit comments