Skip to content

Simplify the exemption test #640

Open
@mattgarrish

Description

@mattgarrish

Since we've opted to output a generic statement regardless of the exemption, there's no need to check for all three EAA exemptions separately. The test could be reduced to one variable that just checks if the exemption property is set.

LET exemption be the result of calling check for node on package_document, /package/metadata/meta[@property="a11y:exemption"].

and

IF exemption:
THEN display "Claims an accessibility exemption in some jurisdictions"

Then we wouldn't have to modify the algorithm every time a new exemption comes along.

(I expect this only works for the epub technique, though.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions