Introduce generic way of handling attributes on elements.