Get element attributes for custom hash.