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 "quotes" 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.