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

WCAG 4.1.2 test 15 false positive #131

Open
jzuidweg opened this issue Dec 16, 2021 · 4 comments
Open

WCAG 4.1.2 test 15 false positive #131

jzuidweg opened this issue Dec 16, 2021 · 4 comments

Comments

@jzuidweg
Copy link

This document still fails WCAG 4.1.2 test 15 ("Paragraph is incorrectly tagged as a numbered heading") on page 34 for the line "4.2.1 Binnensportaccomodatie". This is clearly a heading, so this is a false positive.

Possibly the algorithm notes that the format of this line is the same as that of the heading directly above "4.2. Analyse accommodatiebestand in relatie tot de ontwikkelingen", but it is still obviously a heading because of the formatting and because it continues the numbering.

Can you look into this case?

@bdoubrov
Copy link
Collaborator

We already take into account the presence of the numbering and the bold font. It is just not enough in this case to be classified as a heading, since the preceding and the following blocks of text are also bold and have the identical font size.

We can still use the fact that the block below is bold+italic, so in fact has a different formatting.

@bdoubrov
Copy link
Collaborator

Another important marker is that "4.2.1 Binnensportaccomodatie" does appear in the TOC. With the new TOC support we can recognize this and add as an extra criterium for heading detection.

@jzuidweg
Copy link
Author

The algorithm still appears to miss headers which are clearly headers to the human eye. In particular:

    1. Ontwikkelingsrichtingen periode 2021-2030 (on page 33)
  • 4.2.3 Gebruikstarieven (on page 37)

I'm therefore not closing this issue yet.

@MaximPlusov
Copy link
Collaborator

@jzuidweg The elements 4. Ontwikkelingsrichtingen periode 2021-2030 (on page 33) and 4.2.3 Gebruikstarieven (on page 37) are tagged as paragraphs in the document and we are correctly detect that this should be tagged as headings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants