-
Notifications
You must be signed in to change notification settings - Fork 311
Extend warning for multiple h1 elements (without offsets)
#1973
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
Conversation
|
@sideshowbarker, does this reflect the new expected process for tests? I noticed that https://github.com/validator/tests is archived even though it’s still mentioned in .gitsubtrees.yaml. |
Yeah — in that the tests should be added in the
Yeah, that’s all intentional. The original upstream repo which the tests came from is now read-only. And the inclusion in |
|
One thing I had already been meaning to mention to you: Please see https://github.com/validator/validator/blob/main/CONTRIBUTING.md#commit-hooks for some instructions on how you can set up your local environment so that some git “pre-commit” checks in your local environment every time you commit. If you got through those steps, then among the checks that will do is, it’ll check to make sure you’ve also updated the And in the case of this particular PR, what that will specifically do is, it’ll add a message there for the |
Set up.
|
Introduced a validation check to warn users when multiple `h1` elements are present in a document without the `headingoffset` attribute. This ensures better semantic structure and provides guidance for accessible document design.
c791d04 to
3001f2f
Compare
|
This seems to have broken some existing tests: |
|
So, either those existing tests need to be renamed to Anyway, in the meantime I’m reverting this change — until we get the problems figured out and fixed. |
|
@sideshowbarker, what happened, why did local tests and CI pass? Your call on that but is there or should there be a ticket to make sure these tests cannot be overlooked? And, should we reopen #813? |
What happened is that this change was causing new warnings to be emitted for
I need to update the test runner to make it fail for “new warnings for
We can’t re-open that. Instead, we need a new PR, but this time either with |
Fixed that part now. |
Do you like to take care of that? Would otherwise raise a hand but I get the idea that with this situation, that’s the better call? (I can probably pick up a separate issue again shortly.) |
Improved handling of multiple
h1elements, even taking into accountheadingoffset.Resolves #813