UNPKG

yhtml5-test

Version:

A test framework for front-end projects

13 lines (10 loc) 233 B
import { getProp } from 'jsx-ast-utils'; /** * Returns the implicit role for an area tag. */ export default function getImplicitRoleForArea(attributes) { if (getProp(attributes, 'href')) { return 'link'; } return ''; }