Support for HTML 5 forms, closes #1213