You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 about rel, which is often used in links. For that reason, it expects it to appear after the attributes it knows about. The rule knows about href, so it complains that rel is before href.
However, it is very common for links to have the two attributes in the following order:
coliff
added
keep-unstale
The issue will not be marked as stale by the stale-bot
and removed
bot:stale
Issue marked as stale because there was no activity
labels
May 21, 2023
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: