(inertBodyElement: HTMLElement)
| 344 | } |
| 345 | |
| 346 | function clearInertBodyElement(inertBodyElement: HTMLElement): void { |
| 347 | const parent = getTemplateContent(inertBodyElement) || inertBodyElement; |
| 348 | while (parent.firstChild) { |
| 349 | parent.firstChild.remove(); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | export function getTemplateContent(el: Node): Node | null { |
| 354 | return 'content' in (el as any) /** Microsoft/TypeScript#21517 */ && isTemplateElement(el) |
no test coverage detected