Support more types of attribute inputs