yargalot / gulp-accessibility

Gulp plugin for AccessSniff
48 stars 12 forks source link

This {range|color} input element does not have a name available... #23

Open leptest opened 6 years ago

leptest commented 6 years ago
<label for="ic">Color input</label>
<input type="color" id="ic" name="ic" value="#000000">

<label for="ir">Range input</label>
<input type="range" id="ir" name="ir" value="10">

gives

ERROR WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.InputColor.Name
Line:441 Col:10
This color input element does not have a name available to an accessibility API. Valid names are: element content.
--------------------
<input type="color" id="ic" name="ic" value="#000000">

ERROR WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.InputRange.Name
Line:445 Col:10
This range input element does not have a name available to an accessibility API. Valid names are: element content.
--------------------
<input type="range" id="ir" name="ir" value="10">

Similar issues: https://github.com/squizlabs/HTML_CodeSniffer/issues/210 https://github.com/squizlabs/HTML_CodeSniffer/issues/160 https://github.com/pa11y/pa11y/issues/378