Related to this topic:
UI-licious should have a built-in command to get all attributes of an element.