Skip to main content

attribute_has_value

Callable

  • attribute_has_value(node: Element, attribute_name: string, value_to_check: string | RegExp): boolean

  • Check whether an attribute has a value or not


    Parameters

    • node: Element
    • attribute_name: string
    • value_to_check: string | RegExp

    Returns boolean