Skip to main content

getParentElement

function

Returns the parent element of a DOM node, crossing shadow root boundaries and following slot assignments.

function getParentElement(node: Node): HTMLElement | null

Import

import { getParentElement } from '@modular/sdk/editor';