Add attributes support to Element.