UNPKG

website-auditfy

Version:

> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y

20 lines 795 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AreaAltRule = void 0; const html_validator_helper_1 = require("../../../linters/html-validator.helper"); class AreaAltRule { constructor(dom, lightHouse, htmlValidator) { this.id = 'area-alt'; this.tags = ['html']; this.description = 'Require alternative text on `<area>` elements'; this.ruleUrl = 'https://html-validate.org//rules/area-alt.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.AreaAltRule = AreaAltRule; //# sourceMappingURL=area-alt.rule.js.map