iOS4: form not submitted even after validation errors are corrected #100

Closed
kdonald opened this Issue Feb 17, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@kdonald

kdonald commented Feb 17, 2012

Testing 1.8.8 on iOS 4.3.5 on my iPhone 3gs I've discovered the following:

  • If you have a HTML5 form with at least one 'required' constraint, the form does not submit even after valid values are entered into the form fields. No validation error messages are displayed in this case, to the user it looks like the submit just didn't do anything.
  • If you have a HTML5 form with no required constraints but another constraint such as an email constraint, and that constraint fires and flags an error, the form does not submit even after correcting the error.
  • The only way I've been able to get a validating form to submit is to either remove all the constraints, remove all the required constraints and never trigger other constraints such as email, or navigate away from the page after completing the form in full, navigate back in the browser, and then submit.

I'm not seeing these issues in 1.8.7, which works OK in a IOS 4 environment so long as forms { customMessages: true } is set as an option.

See #97 for more information.

@aFarkas

This comment has been minimized.

Show comment Hide comment
@aFarkas

aFarkas Feb 18, 2012

Owner

Thanks for this issue. As you might know, I have removed iOS4 and Safari 5.0.0-5.0.2 from my support table, simply because I don't want to fully support these extrem buggy versions. So I have removed a lot of support code for those browsers (code was a little bit unclean...). But this should not mean, that webshims will create major/critical/blocker issues in those browsers. Therefore, I have partially re-added some of the support code and this should now fix your issue.

But I couldn't test with iOS4 (My Mac is currently broken.). It would be nice, if you could confirm, that this fix works.

Owner

aFarkas commented Feb 18, 2012

Thanks for this issue. As you might know, I have removed iOS4 and Safari 5.0.0-5.0.2 from my support table, simply because I don't want to fully support these extrem buggy versions. So I have removed a lot of support code for those browsers (code was a little bit unclean...). But this should not mean, that webshims will create major/critical/blocker issues in those browsers. Therefore, I have partially re-added some of the support code and this should now fix your issue.

But I couldn't test with iOS4 (My Mac is currently broken.). It would be nice, if you could confirm, that this fix works.

@aFarkas aFarkas closed this Feb 18, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment