You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var text = axe.commons.text.sanitize(node.textContent);
|
|
var role = node.getAttribute('role');
|
|
|
|
if (role && role !== 'link') {
|
|
return false;
|
|
}
|
|
if (!text) {
|
|
return false;
|
|
}
|
|
if (!axe.commons.dom.isVisible(node, false)) {
|
|
return false;
|
|
}
|
|
|
|
return axe.commons.dom.isInTextBlock(node);
|