Validation error on Nu HTML Checker: "Bad value radio for attribute type on element input." -


i getting error

error: bad value radio attribute type on element input.

when trying validate following html on https://validator.w3.org/nu/#file

<fieldset> <p class="city" id="citypref">generally, prefer live in...</p> <br> <label for="la" id="lalabel"> <br> <input type="radio" name="city" id="la" value="la" aria-required="false" aria-labelledby="lalabel" role="radiogroup" >los angeles, california</label> <br> <label for="boston" id="bostonlabel"> <input type="radio" name="city" id="boston" value="boston" aria-required="false" aria-labelledby="bostonlabel" role="radiogroup" >boston, massachusetts</label> <br> <label for="both" id="bothlabel"> <input type="radio" name="city" id="both" value="both" aria-required="false" aria-labelledby="bothlabel" role="radiogroup" >both</label> <br> <label for="neither" id="neitherlabel"> <input type="radio" name="city" id="neither" value="neither" aria-required="false" aria-labelledby="neitherlabel" role="radiogroup" >neither</label> <br> </fieldset> 

any tips?

it seems https://validator.w3.org/ not yet equipped following codes

it implements conformance requirements use of aria in html defined in https://www.w3.org/tr/html-aria/ prohibits role=radiogroup on input type="radio". defines valid role values elements. no input elements allow role="radio". role="menuitemradio" allowed input type="radio".

another answer incorrectly suggested ul role="radiogroup" , li role="radio" instead. aria in html prohibits role="radiogroup" ul , prohibits role="radio" li.

note there roles , property attributes introduced in aria 1.1 validator not recognise. being worked on.

if have issue w3c validator suggest filing issue


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -