simple attr() function, types not supported