-
-
Notifications
You must be signed in to change notification settings - Fork 401
attr-sorted doesn't sort unknown tags #661
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
Labels
bug
Functionality that does not work as intended/expected
keep-unstale
The issue will not be marked as stale by the stale-bot
Comments
chrisguttandin
added a commit
to chrisguttandin/HTMLHint
that referenced
this issue
Aug 16, 2021
Previously unknown attributes were just ignored. Now they get sorted alphabetically. BREAKING CHANGE: HTMLHint will now throw an error if unkown attributes are not sorted. fix htmlhint#661
I went ahead and created a PR to make sure this doesn't get stale. :-) I chose to update the existing attr-sorted rule. Please let me know if I should better create a new rule. |
chrisguttandin
added a commit
to chrisguttandin/HTMLHint
that referenced
this issue
May 12, 2023
Previously unknown attributes were just ignored. Now they get sorted alphabetically. BREAKING CHANGE: HTMLHint will now throw an error if unkown attributes are not sorted. fix htmlhint#661
chrisguttandin
added a commit
to chrisguttandin/HTMLHint
that referenced
this issue
Apr 28, 2025
Previously unknown attributes were just ignored. Now they get sorted alphabetically. BREAKING CHANGE: HTMLHint will now throw an error if unkown attributes are not sorted. fix htmlhint#661
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Functionality that does not work as intended/expected
keep-unstale
The issue will not be marked as stale by the stale-bot
Is your feature request related to a problem? Please describe.
The attr-sorted rule sorts a couple of known tags but doesn't care about those which are not on the list.
Describe the solution you'd like
I think it would be great if all tags would be sorted in a reproducible manner. Tags which are not on the list could for example be sorted alphabetically.
Currently both versions of the custom-element below pass the rule.
I think it would be better if there was only one correct way to write this. When sorting other tags alphabetically that would be:
Describe alternatives you've considered
It would be possible as well to create a completely new rule which sorts all tags alphabetically.
Additional context
I'm happy to provide a PR if you think this is a useful addition to HTMLHint.
The text was updated successfully, but these errors were encountered: