Add rel
to list of sorted attributes
#1297
Labels
keep-unstale
The issue will not be marked as stale by the stale-bot
rel
to list of sorted attributes
#1297
Is your feature request related to a problem? Please describe.
The rule
attr-sorted
complains about an order of attributes in links that is standard in HTML.Details:
The rule
attr-sorted
does not know aboutrel
, which is often used inlink
s. For that reason, it expects it to appear after the attributes it knows about. The rule knows abouthref
, so it complains thatrel
is beforehref
.However, it is very common for links to have the two attributes in the following order:
For example:
Describe the solution you'd like
Make
rel
a known attribute in the ruleattr-sorted
, and expect it beforehref
.Describe alternatives you've considered
Disabling the rule.
Additional context
There are other attributes known by
attr-sorted
that apply tolink
, such astype
andtitle
: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/linkThe attribute
rel
also applies to other elements: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/relIs issue #1210 allowed for customization of not just the order, but also the attributes, then it would also provide an easy solution for this issue.
The text was updated successfully, but these errors were encountered: