From 94c64205d5622576b2ed193360111fdaf9361d0d Mon Sep 17 00:00:00 2001 From: Romain Deltour Date: Wed, 10 Jan 2018 02:45:10 +0100 Subject: [PATCH] fix(rule): disable aXe check requiring at least one `main` aXe 2.6.0 introduces a check ensuring that a document has at least one `main` landmark, in the `landmark-one-main` rule. Ace disables this check, as it makes no real sense in EPUB. Fixes #139 --- packages/ace-core/src/scripts/ace-axe.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/ace-core/src/scripts/ace-axe.js b/packages/ace-core/src/scripts/ace-axe.js index 75054b3c..97677ad1 100644 --- a/packages/ace-core/src/scripts/ace-axe.js +++ b/packages/ace-core/src/scripts/ace-axe.js @@ -178,6 +178,12 @@ daisy.ace.run = function(done) { description: "Ensure the element has an ARIA role matching its epub:type", }, tags: ['best-practice'] + }, + { + id: 'landmark-one-main', + all: [ + "has-no-more-than-one-main" + ], } ] });