Bug fix for bug fix 249

I added in input, select, textarea, button, also switched to using
Elements. And added a test case.