1 | import * as ts from 'typescript';
|
2 | import { getAncestorNode } from '../JsxAttribute';
|
3 |
|
4 | /**
|
5 | * @Returns the implicit role for a footer tag.
|
6 | */
|
7 | function getImplicitRoleForFooter(node: ts.Node): string {
|
8 | return getAncestorNode(node, 'article') || getAncestorNode(node, 'section') ? undefined : 'contentinfo';
|
9 | }
|
10 |
|
11 | export { getImplicitRoleForFooter as footer };
|