add support for form attribute on input, select, and textarea elements