Append attribute object to the element.