• Resolve a reference attribute that may be either a bare id (panel-1) or a hash selector (#panel-1) to an element within scope.

    Type Parameters

    • T extends HTMLElement = HTMLElement

    Parameters

    • scope: ParentNode
    • ref: undefined | null | string

    Returns null | T