Implement Element.attributes.