attr-sorted doesn't sort unknown tags #661
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: