uppercase tagname if looking for form elements; fixes 372

Quickly built and tested on device with form demo and works.