input-file-empty-value
HTML Living Standard §4.10.5.1.18 (File Upload state) によれば、<input type="file"> には空文字列以外の value 属性を指定できません。
The
valueattribute, if specified, must have a value that is the empty string.
❌ このルールに適合しない誤ったコードの例
<input type="file" value="document.pdf" />
✅ このルールに適合する正しいコードの例
<input type="file" /> <input type="file" value="" />
Interface
{
"input-file-empty-value": boolean
}
HTML LS §4.10.5.1.18 に従い、<input type="file"> の value 属性は省略または空文字列のみ許容します。
Default Severity
error