DomUtils.hasAttribChecks whether an element has an attribute. function hasAttrib(elem: Element, name: string): boolean;§hasAttrib(elem: Element, name: string): boolean[src]§Parameters§elem: Element[src]Element to check. §name: string[src]Attribute name to look for. §Return Type§boolean[src]Returns whether elem has the attribute name.