Skip to main content

has_non_empty_attribute

Callable

  • has_non_empty_attribute(node: Element, attribute_name: string, allow_null?: boolean): boolean

  • Check whether the given tag has a non-empty attribute with the given name. Empty string ("") is accepted if optional parameter allow_null is true


    Parameters

    • node: Element
    • attribute_name: string
    • allow_null: boolean = false

    Returns boolean