Add attributes support to Element. Clean code.