defaults to text type attribute if no type attribute is present on an input