(node: Node)
| 108 | } |
| 109 | |
| 110 | export function getContent(node: Node): Node { |
| 111 | if ('content' in node) { |
| 112 | return (<any>node).content; |
| 113 | } else { |
| 114 | return node; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | export function templateAwareRoot(el: Node): any { |
| 119 | return getDOM().isElementNode(el) && el.nodeName === 'TEMPLATE' ? getContent(el) : el; |
no outgoing calls
no test coverage detected