|
|
|
|
@ -133,6 +133,16 @@ export function a11y_img_redundant_alt(node) {
|
|
|
|
|
w(node, "a11y_img_redundant_alt", "Screenreaders already announce `<img>` elements as an image.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The value of '%attribute%' must be a %type%
|
|
|
|
|
* @param {null | NodeLike} node
|
|
|
|
|
* @param {string} attribute
|
|
|
|
|
* @param {string} type
|
|
|
|
|
*/
|
|
|
|
|
export function a11y_incorrect_aria_attribute_type(node, attribute, type) {
|
|
|
|
|
w(node, "a11y_incorrect_aria_attribute_type", `The value of '${attribute}' must be a ${type}`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The value of '%attribute%' must be either 'true' or 'false'. It cannot be empty
|
|
|
|
|
* @param {null | NodeLike} node
|
|
|
|
|
@ -169,16 +179,6 @@ export function a11y_incorrect_aria_attribute_type_integer(node, attribute) {
|
|
|
|
|
w(node, "a11y_incorrect_aria_attribute_type_integer", `The value of '${attribute}' must be an integer`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The value of '%attribute%' must be a %type%
|
|
|
|
|
* @param {null | NodeLike} node
|
|
|
|
|
* @param {string} attribute
|
|
|
|
|
* @param {string} type
|
|
|
|
|
*/
|
|
|
|
|
export function a11y_incorrect_aria_attribute_type(node, attribute, type) {
|
|
|
|
|
w(node, "a11y_incorrect_aria_attribute_type", `The value of '${attribute}' must be a ${type}`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The value of '%attribute%' must be exactly one of %values%
|
|
|
|
|
* @param {null | NodeLike} node
|
|
|
|
|
|