When generating the link in the Facet API theme functions there are accessibility variables:
See the facetapi.theme.inc file http://cgit.drupalcode.org/facetapi/tree/facetapi.theme.inc
$accessible_vars = array(
'text' => $variables['text'],
'active' => TRUE,
);
This puts all the content of the face into an invisible span for screen readers.
The problem is that in some cases facets can have complex HTML displayed, like images and other markup. In this case the whole markup gets printed out in the <span class="element-invisible"> ' . $text . ' </span> content
This also might have security concerns since everything gets printed out without filtering.
I would suggest the following change
$accessible_vars = array(
'text' => drupal_html_to_text($variables['text']),
'active' => TRUE,
);
if somebody can confirm and also sees this as a good solution I will proceed in making the patch.
Specially I would like the feedback of @cpliakas since the code from the theme file refers to this issue #1316580: theme_facetapi_link_active produces inaccessible links
Comments
Comment #1
mgifford