Skip to content

hasAttribute

hasAttribute(element, name) → boolean · XML

Check if an XML element has a specific attribute. See Chapter 22.

  • element (required): XML UDM element

  • name (required): attribute name to check

utlx
{
  hasId: hasAttribute($input.element, "id"),
  hasClass: hasAttribute($input.element, "class")
}

Released under AGPL-3.0.