Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Radio Button Labels
LegacyForum
Posts: 1,664 ✭✭
WebKing error for labelled radio btns
I'm using WebKing 5.5 and getting the following error:WCAG 2.0: Success Criteria 1.3.1, 4.2.1: Form controls and their labelsshould be explicitly associated with the LABLE Element
WCAG 2.0: Do not use the LABEL element implicitly.
I am using JSF to perform the labelling and the resulting HTML follows. You'll have to look at this in RAW text (or view source) :
[I][B]
0
Comments
-
WebKing is flagging those inputs as being improperly labeled because the input tag is nested inside the label tag. In order to conform to the WCAG 2.0 standard the text should look something like thisCODE
<label for="form1:traceRadio">Severe</label><input type="radio" checked name="form1:traceRadio">
0