added basic support for input[type=text]