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