Valid element in attr
Fix number attrs handling