UNPKG

website-auditfy

Version:

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

20 lines 894 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ElementRequiredContentRule = void 0; const html_validator_helper_1 = require("../../../linters/html-validator.helper"); class ElementRequiredContentRule { constructor(dom, lightHouse, htmlValidator) { this.id = 'element-required-content'; this.tags = ['html']; this.description = 'Ensure required elements are present'; this.ruleUrl = 'https://html-validate.org//rules/element-required-content.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.ElementRequiredContentRule = ElementRequiredContentRule; //# sourceMappingURL=element-required-content.rule.js.map