Added support for input elements of type text.