aFarkas/webshim — Issue #97: Webshims forms error on Safari iOS 4
Author: kdonald
Created: 2012-02-01 14:06:24+00:00
State: open

I'm testing my app on iOS 4.3.5 running on an iPhone 3gs.

I have a HTML5 form that submits using Ajax. Webshims 'forms' feature is loaded to provide HTML5 validation.

I'm receiving the following error:
- JavaScript Error on Line 1 form-native-extend.js
TypeError: Result of expression 'b.createValidationMessage' [undefined] is not a....

Unfortunately the rest of the error message is not viewable from the Mobile Safari Console...

This error has a nasty effect since it when it happens the Ajax form submit doesn't fire (not sure why this error would cause my event handler to not be registered as well). If I go try repeatedly occasionally I can get the ajax submit to work as its supposed to.

I see that Webshims is tested on iOS 5+, not iOS 4+. Indeed, my app works fine running on iOS 5. Any suggestions for iOS 4 compatibility?