Closed maheshbansod closed 1 year ago
Hi @maheshbansod , Thanks for the reporting.
I can reproduce it with ”
but cannot reproduce with "
. (Is the ”
a typo?)
But I think the autofix is wrong anyway.
You're right, @yeonjuan , the "
was a typo. Embarassd that I didn't notice it sooner :smile:
I guess it's breaking for special characters then.
It's bugs in es-html-parser. The parser produces incorrect location information.
@maheshbansod It's fixed and released! (v1.9.1) Thanks!
Noticed that if an attribute value with special characters (e.g.
_
/{
) or some invalid value appears in HTML and the rule@html-eslint/no-extra-spacing-attrs
is active then eslint (with--fix
) strips off everything after the attribute name.Example: HTML
eslint config:
Observed result HTML:
Edit: I've not quite figured out the actual problem.. after changing it to
target="blank"
(i.e. without special characters), I still get the same result - the other attributes are removed - this doesn't happen in case ofhref
attribute.