website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
20 lines • 818 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WcagH67Rule = void 0;
const html_validator_helper_1 = require("../../../linters/html-validator.helper");
class WcagH67Rule {
constructor(dom, lightHouse, htmlValidator) {
this.id = 'wcag-h67';
this.tags = ['html'];
this.description = 'WCAG H67: Using null alt text and no title attribute on img elements';
this.ruleUrl = 'https://html-validate.org//rules/wcag/h67.html';
this.dom = dom;
this.lightHouse = lightHouse;
this.htmlValidator = htmlValidator;
}
check() {
return html_validator_helper_1.HtmlValidatorUtils.identifyRule(this.id, this.ruleFlow, this.htmlValidator);
}
}
exports.WcagH67Rule = WcagH67Rule;
//# sourceMappingURL=wcag-h67.rule.js.map