UNPKG

@uuv/a11y

Version:

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

35 lines (34 loc) 1.76 kB
export interface IAttributeSpecification { isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class EmptyAttributeSpecification implements IAttributeSpecification { isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class NotEmptyAttributeSpecification implements IAttributeSpecification { isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class EmptyElementWithIdSpecification implements IAttributeSpecification { isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class NotUniqueIdAttributeSpecification implements IAttributeSpecification { isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class NotEqualsAttributeSpecification implements IAttributeSpecification { private expectedValueList; constructor(expectedValueList: string[]); isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class EqualsAttributeSpecification implements IAttributeSpecification { private expectedValueList; constructor(expectedValueList: string[]); isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class AccessibleNameNotContainsVisibleTextSpecification implements IAttributeSpecification { isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class EmptyInnerTextSpecification implements IAttributeSpecification { isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; } export declare class NotEmptyInnerTextSpecification implements IAttributeSpecification { isSatisfiedBy(element: HTMLElement, attributeName: string): boolean; }