elements icon indicating copy to clipboard operation
elements copied to clipboard

Confusing if should use .getAttribute or .type()/.id()

Open arian opened this issue 13 years ago • 0 comments

Some special attributes/properties have special methods, like .id(), .type(), however not all of them. It's confusing now if those methods exists for the attribute I like to get, or not.

With MooTools it's always simply .get('type') or .get('data-foo').

arian avatar Aug 29 '12 15:08 arian