Using type attr of element instead of property.