Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landmark main is back as a violation #139

Closed
laudrain opened this issue Dec 27, 2017 · 5 comments · Fixed by #149
Closed

Landmark main is back as a violation #139

laudrain opened this issue Dec 27, 2017 · 5 comments · Fixed by #149
Assignees
Labels
Milestone

Comments

@laudrain
Copy link

We had this discussion about having a main element or a role "main" on one major HTML tag like section.
I thought we dismissed it as you said in issue #40 "FWIW, this rule will be deactivated anyway in the upcoming release, since it doesn't make much sense in an EPUB."
Will you maintain it?

@rdeltour
Copy link
Member

I'm surprised, since this is tested by a regression test (see the test data and test method).

Can you confirm you're running the latest version, and if yes can you provide a verbose log and input file?

@laudrain
Copy link
Author

I do have "Generated by DAISY Ace (0.8.0)" at the beginning of the report.
Attached are a zipped EPUB preview file, and the zipped report.json.
9782246861737-Extrait.epub.zip
report.json.zip

And the verbose log:
laudrain$ ./ace-check.sh 9782246861737-Extrait
verbose: ACE cwd=/Users/laudrain/Documents/Fichiers/eBook/Accessibilité, outdir=9782246861737-Extrait-ace, tmpdir=9782246861737-Extrait-ace, verbose=true, silent=false, jobId=
info: Processing 9782246861737-Extrait.epub
verbose: Extracting EPUB
info: Parsing EPUB
verbose: at location '/var/folders/56/hqt0p1wx7r5ddghfrf5z0s4rmt2z82/T/tmp-119177307L1nqBdJs'
info: Analyzing accessibility metadata
info: Checking package...
info: Checking documents...
verbose: - Processing cover.xhtml
verbose: - Processing pagetitre.xhtml
verbose: - Processing ident1-1.xhtml
verbose: - Processing ident1-2.xhtml
verbose: Converting aXe results to ace for pagetitre.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
info: - pagetitre.xhtml: 1 issues found
verbose: - Processing ident1-3.xhtml
verbose: Converting aXe results to ace for ident1-1.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
verbose: Couldn’t find KB key for rule 'epub-type-has-matching-role'
info: - ident1-1.xhtml: 2 issues found
verbose: - Processing pre2.xhtml
verbose: Converting aXe results to ace for cover.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
verbose: Couldn’t find KB key for rule 'epub-type-has-matching-role'
info: - cover.xhtml: 3 issues found
verbose: - Processing chap1.xhtml
verbose: Converting aXe results to ace for ident1-2.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
verbose: Couldn’t find KB key for rule 'epub-type-has-matching-role'
info: - ident1-2.xhtml: 2 issues found
verbose: - Processing ident1.xhtml
verbose: Converting aXe results to ace for ident1-3.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
verbose: Couldn’t find KB key for rule 'epub-type-has-matching-role'
info: - ident1-3.xhtml: 2 issues found
verbose: - Processing sommaire.xhtml
verbose: Converting aXe results to ace for ident1.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
info: - ident1.xhtml: 1 issues found
verbose: Converting aXe results to ace for pre2.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
verbose: Couldn’t find KB key for rule 'epub-type-has-matching-role'
info: - pre2.xhtml: 3 issues found
verbose: Converting aXe results to ace for chap1.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
verbose: Couldn’t find KB key for rule 'epub-type-has-matching-role'
info: - chap1.xhtml: 11 issues found
verbose: Converting aXe results to ace for sommaire.xhtml
verbose: Couldn’t find KB key for rule 'landmark-one-main'
verbose: Couldn’t find KB key for rule 'epub-type-has-matching-role'
info: - sommaire.xhtml: 2 issues found
info: Consolidating results...
info: Copying data
info: Saving JSON report
info: Saving HTML report
info: Done.

@laudrain
Copy link
Author

laudrain commented Jan 3, 2018

Re-installed ace 0.8.0
landmark main still an issue for all HTML doc.
Can you reproduce the issue with the file I sent?

@rdeltour
Copy link
Member

rdeltour commented Jan 3, 2018

I can reproduce the issue. It comes from aXe's rule landmark-one-main which checks the existence of a main element now that the bypass rule has been disabled.

I'm surprised we haven't been hit by this before, but definitely adding this to the next milestone! Thank you Luc for the report.

@rdeltour rdeltour added this to the v0.9.0 milestone Jan 3, 2018
@rdeltour
Copy link
Member

rdeltour commented Jan 8, 2018

Here's what happens: in version 2.6.0 aXe changed the rule landmark-one-main to ensure that the document contains at least one main landmark. Ace references aXe 2.5.0, but not as a fixed version, so the tests were run with aXe 2.5.0 but a new install fetched aXe 2.6.0, hence the different behavior.

I'll fix the rule for Ace, and will now freeze the referenced aXe version to avoid this kind of mismatch.

rdeltour added a commit that referenced this issue Jan 10, 2018
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
rdeltour added a commit that referenced this issue Jan 18, 2018
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants