I just went through the validation of a client website. The client asked for WCAG 3.0 and Section 508 compliance.
To achieve this, the only thing I had to modify was the FlexSearchForm snippet. Line 291 to 295, change :
$SearchForm .= '<input class="FSF_input" type="text" name="search" value="'.$searchBoxVal.'" ';
$SearchForm .= ($boxText)? 'onfocus="this.value=(this.value==\''.$boxText.'\')? \'\' : this.value ;" />' : '/>';
$SearchForm .= '<input class="FSF_submit" type="submit" name="sub" value="'.$searchButtonText.'" />';
$SearchForm .= ($xhtmlStrict)? '</fieldset>' : '';
$SearchForm .= '</form>'.$newline;
into :
$SearchForm .= '<label for="FSF_input"><input id="FSF_input" type="text" name="search" value="'.$searchBoxVal.'" ';
$SearchForm .= ($boxText)? 'onfocus="this.value=(this.value==\''.$boxText.'\')? \'\' : this.value ;" />' : '/>';
$SearchForm .= '</label><label for="FSF_submit"><input id="FSF_submit" type="submit" name="sub" value="'.$searchButtonText.'" />';
$SearchForm .= ($xhtmlStrict)? '</fieldset>' : '';
$SearchForm .= '</label></form>'.$newline;
Basically, what I did was make the class and id for FSF_input and FSF_Submit and add labels to both inputs.
Labels can only match single identifiers (id) thus class had to be changed.
I just did the changes and went through Cynthia’s validation for WCAG 3.0 and Section 508, but if you see any errors there, please tell me.
Thought I would share