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

Modify all headings in sections to be valid #391

Open
carolineBda opened this issue Jan 4, 2023 · 0 comments
Open

Modify all headings in sections to be valid #391

carolineBda opened this issue Jan 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@carolineBda
Copy link
Contributor

Issue to fix
Htlm is invalid here :
https://code.travail.gouv.fr/fiche-ministere-travail/entreprises-dinsertion-ei
but valid on source page
https://travail-emploi.gouv.fr/emploi-et-insertion/insertion-activite-economique/article/entreprises-d-insertion-ei

Solution
Currently in our page, headings are one less further than on source site as on source H1 is always the link to home.
When we parse the html of each sections, we should transform every decrement every headings with one :
https://github.com/SocialGouv/fiches-travail-data/blob/master/src/fetch-data/parseDom.js#L209

@carolineBda carolineBda added the bug Something isn't working label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant