elements
elements copied to clipboard
Confusing if should use .getAttribute or .type()/.id()
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').