website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
20 lines • 893 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AttributeAllowedValuesRule = void 0;
const html_validator_helper_1 = require("../../../linters/html-validator.helper");
class AttributeAllowedValuesRule {
constructor(dom, lightHouse, htmlValidator) {
this.id = 'attribute-allowed-values';
this.tags = ['html'];
this.description = 'Validate permitted attribute values';
this.ruleUrl = 'https://html-validate.org//rules/attribute-allowed-values.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.AttributeAllowedValuesRule = AttributeAllowedValuesRule;
//# sourceMappingURL=attribute-allowed-values.rule.js.map