src code

instance method Element#identify

Element#identify() → String

Returns element's ID. If element does not have an ID, one is generated, assigned to element, and returned.

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.