@@ -133,6 +133,16 @@ export function a11y_img_redundant_alt(node) {
133133 w ( node , "a11y_img_redundant_alt" , "Screenreaders already announce `<img>` elements as an image." ) ;
134134}
135135
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+
136146/**
137147 * The value of '%attribute%' must be either 'true' or 'false'. It cannot be empty
138148 * @param {null | NodeLike } node
@@ -169,16 +179,6 @@ export function a11y_incorrect_aria_attribute_type_integer(node, attribute) {
169179 w ( node , "a11y_incorrect_aria_attribute_type_integer" , `The value of '${ attribute } ' must be an integer` ) ;
170180}
171181
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-
182182/**
183183 * The value of '%attribute%' must be exactly one of %values%
184184 * @param {null | NodeLike } node
0 commit comments