Moved getAttribute and hasAttribute to thBase.traits