Often with input elements, the value
attribute is bound rather than
the property by the same name. This can lead to binding issues as only
the initial value is then set.
This rule disallows use of the value attribute on input elements.
The following patterns are considered warnings:
html`<input value=${x} />`;
html`<input value=${"foo"} />`;
The following patterns are not warnings:
html`<x-foo value=${x}>`;
html`<input value="foo" />`;
If you wish to bind the value
attribute, you will not need this rule.