@@ -133,6 +133,16 @@ export function a11y_img_redundant_alt(node) {
133
133
w ( node , "a11y_img_redundant_alt" , "Screenreaders already announce `<img>` elements as an image." ) ;
134
134
}
135
135
136
+ /**
137
+ * The value of '%attribute%' must be a %type%
138
+ * @param {null | NodeLike } node
139
+ * @param {string } attribute
140
+ * @param {string } type
141
+ */
142
+ export function a11y_incorrect_aria_attribute_type ( node , attribute , type ) {
143
+ w ( node , "a11y_incorrect_aria_attribute_type" , `The value of '${ attribute } ' must be a ${ type } ` ) ;
144
+ }
145
+
136
146
/**
137
147
* The value of '%attribute%' must be either 'true' or 'false'. It cannot be empty
138
148
* @param {null | NodeLike } node
@@ -169,16 +179,6 @@ export function a11y_incorrect_aria_attribute_type_integer(node, attribute) {
169
179
w ( node , "a11y_incorrect_aria_attribute_type_integer" , `The value of '${ attribute } ' must be an integer` ) ;
170
180
}
171
181
172
- /**
173
- * The value of '%attribute%' must be a %type%
174
- * @param {null | NodeLike } node
175
- * @param {string } attribute
176
- * @param {string } type
177
- */
178
- export function a11y_incorrect_aria_attribute_type ( node , attribute , type ) {
179
- w ( node , "a11y_incorrect_aria_attribute_type" , `The value of '${ attribute } ' must be a ${ type } ` ) ;
180
- }
181
-
182
182
/**
183
183
* The value of '%attribute%' must be exactly one of %values%
184
184
* @param {null | NodeLike } node
0 commit comments