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

Options
LegacyForum
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) : Severe Error Warning Info Debug Trace
What is WebKing complaining about specifically since it appears the labels are in there. I do see that the name attributes are not unique but its unclear that is required.

[I][B]

Comments

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    Options
    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 this
    CODE
    <label for="form1:traceRadio">Severe</label><input type="radio" checked name="form1:traceRadio">