Interface NonDocumentTypeChildNode

interface NonDocumentTypeChildNode {
    nextElementSibling: null | Element;
    previousElementSibling: null | Element;
}

Hierarchy (view full)

Properties

nextElementSibling: null | Element

Returns the first following sibling that is an element, and null otherwise.

MDN Reference

previousElementSibling: null | Element

Returns the first preceding sibling that is an element, and null otherwise.

MDN Reference