added getAttributeElements