Disallow implicit input type
- Rule ID:
- no-implicit-input-type
- Category:
- Style
- Standards:
- -
When the type
attribute is omitted it defaults to text
.
Being explicit about the intended type better conveys the purpose of the input field.
Rule details
Examples of incorrect code for this rule:
<input>
Examples of correct code for this rule:
<input type="text">
Version history
- 8.10.0 - Rule added.