parent property

Element? parent

The parent element of this node.

Returns null if this node either does not have a parent or its parent is not an element.

Other resources

Implementation

@JSName('parentElement')

/**
 * The parent element of this node.
 *
 * Returns null if this node either does not have a parent or its parent is
 * not an element.
 *
 * ## Other resources
 *
 * * [Node.parentElement](https://developer.mozilla.org/en-US/docs/Web/API/Node.parentElement)
 *   from W3C.
 */

Element? get parent native;