## 事象 以下のように `requires value` という旨の警告が表示される。 ![[Pasted image 20231024134740.png]] ## 原因 [[IntelliJ IDEA]]のinspectionで設定されているから。 ![[Pasted image 20231024144750.png]] ## 解決方法 設定を無効化する。 [[HTML Living Standard]]に以下の記述があるので問題はないはず。 > The values "true" and "false" are not allowed on boolean attributes. To represent a false value, the attribute has to be omitted altogether. > > Here is an example of a checkbox that is checked and disabled. The checked and disabled attributes are the boolean attributes. > > ```html > <label><input type=checkbox checked name=cheese disabled> Cheese</label> >``` > > *[HTML Standard 2.3.2 Boolean attributes より引用](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes)*