HTML Formatting vs. Linting

There seems to be a conflict between Prettier and HTMLHint in the Glitch editor.

Here’s a fragment of HTML with " named characters in a double-quoted attribute value. There are no linting errors.

<meta name="Description" content="Do these &quot;quotes&quot; look right?" />

Here’s the same fragment after being formatted:

<meta name="Description" content='Do these "quotes" look right?' />

There is now a linting error:

The value of attribute [ content ] must be in double quotes.

It appears that HTMLHint (see attr-value-double-quotes) and Prettier (see “String Rationales”) disagree about how attribute values should be quoted by default.

I believe the HTMLHint attr-value-double-quotes rule should be set to false to resolve this conflict.

If you don’t mind I’m going to change this to a feature request.

And I’ll ping @glitch_support!

@jenn have you gotten a chance to take a look at this issue?

hi there - creating a bug report now for this!

1 Like

and for reporting this! in the future, you can send reports like this to support@glitch.com and we won’t be able to miss it!

1 Like

Will do, thanks for the response!