• Test whether a selector is a valid CSS selector.

    Returns

    true if the selector is valid, false otherwise.

    Notes

    The computed result is cached, so subsequent tests for the same selector are extremely fast.

    Parameters

    • selector: string

      The CSS selector of interest.

    Returns boolean

Generated using TypeDoc