-
Notifications
You must be signed in to change notification settings - Fork 28
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
Rule no-extra-spacing-attrs
removing other attributes.
#137
Comments
Hi @maheshbansod , Thanks for the reporting. |
You're right, @yeonjuan , the |
It's bugs in es-html-parser. |
@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.The text was updated successfully, but these errors were encountered: