markuplint icon indicating copy to clipboard operation
markuplint copied to clipboard

`<input type=text placeholder="some text">`で「アクセシブルな名前が必要です」と返される

Open momdo opened this issue 2 years ago • 0 comments

  • Markuplint version: 4.1.0
  • Parser lang: HTML
  • Node.js version: 20.11.0
  • OS: Windows

Describe the bug

<input type=text placeholder="some text">で次のメッセージが出力されます。

アクセシブルな名前が必要です

しかし、HTML-AAM仕様§4.1.1によれば、placeholderは名前として計算されますから、このエラーメッセージは適切ではないです。

Code Example

<input type="text" placeholder="require-accessible-name">

Steps To Reproduce

  1. <input type=text placeholder="some text">を記述します

The current behavior

アクセシブルな名前が必要です

と出力されます。

The expected behavior

  • エラーとして報告しないようにします。もしくは、
  • エラーとして報告するのであれば「placeholder属性しかない」ことをメッセージで指摘するようにします。

momdo avatar Feb 13 '24 12:02 momdo