Make TextField and TextArea work with any type of element

We were relying on the user to use an input type="text" or textarea.