Reserved characters should be encoded as HTML entities in attribute values to avoid parsing errors.
For example, >
should be represented as >
.
This rule disallows using unencoded reserved characters in attribute values.
The following patterns are considered warnings:
html`<x-foo attr=">">`;
html`<x-foo attr="<">`;
html`<x-foo attr="&">`;
html`<x-foo attr='"'>`;
The following patterns are not warnings:
html`<x-foo attr="value">`;
If you don't care about potential parsing errors, then you will not need this rule.