UNPKG

@uuv/a11y

Version:

A javascript lib for running a11y validation based on multiple reference(RGAA, etc)

36 lines (35 loc) 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const model_1 = require("../../../model"); const query_1 = require("../../../query"); exports.default = [ model_1.AutoCheckA11yRule.from({ criterion: "2.1", wcag: "4.1.2 A", id: "2.1.1", elementType: "iframe", query: new query_1.CompliantAttributesQuery(new query_1.ByTagQuery([ "iframe", "frame" ]), [ query_1.AttributeChecker.emptyAttribute("title"), ]), description: "iframe has no title", help: "set a title to iframe" }), model_1.ManualCheckA11yRule.from({ criterion: "2.2", wcag: "4.1.2 A", id: "2.2.1", elementType: "iframe", query: new query_1.CompliantAttributesQuery(new query_1.ByTagQuery([ "iframe", "frame" ]), [ query_1.AttributeChecker.notEmptyAttribute("title"), ]), attributes: [ "title" ], description: "if present, attributes title must be relevant", help: "adapt this attribute" }) ];