use of org.asqatasun.rules.elementselector.AreaLinkElementSelector in project Asqatasun by Asqatasun.
the class Rgaa22Rule06031 method select.
@Override
protected void select(SSPHandler sspHandler) {
/* the image link element selector */
LinkElementSelector compositeLinkElementSelector = new CompositeLinkElementSelector(false, true);
ElementHandler<Element> elHandler = new ElementHandlerImpl();
compositeLinkElementSelector.selectElements(sspHandler, elHandler);
for (Element el : compositeLinkElementSelector.getDecidableElements().get()) {
if (doesElementHaveRequestedTargetAttribute(el)) {
compositeLinks.add(el);
}
}
LinkElementSelector areaLinkElementSelector = new AreaLinkElementSelector(false);
elHandler.clean();
areaLinkElementSelector.selectElements(sspHandler, elHandler);
for (Element el : areaLinkElementSelector.getDecidableElements().get()) {
if (doesElementHaveRequestedTargetAttribute(el)) {
compositeLinks.add(el);
}
}
}
Aggregations