-
Notifications
You must be signed in to change notification settings - Fork 20.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input's form attribute and document submit handler produce an IE8 error #2332
Comments
See trac-12717 and trac-14126. Also note that Microsoft will stop supporting IE8 in January 2016 so it's really not worth a lot of additional IE8 heroics at this point. |
I see your point, but I still think that it wouldn't hurt to change if ( form && !jQuery._data( form, "submitBubbles" ) ) { to if ( form && typeof form !== "string" && !jQuery._data( form, "submitBubbles" ) ) { or maybe even if ( typeof form == "object" && !jQuery._data( form, "submitBubbles" ) ) { It won't make the |
That might prevent an error but it won't make form elements work that have a string |
My reason is that when I decide to go with using |
We should replace |
Oh, true, I didn't even think about using a propHook! |
Let me make sure if I understand you correctly - do you suggest just to switch |
Correct. |
Fixed in ead83b9. Note that we only use the |
When you use an input with
form
attribute while also handling the document'ssubmit
event you get an error in IE8.Here's an easy way to reproduce it.
When you click the input in IE8 you get this error.
Here's a jsfiddle http://jsfiddle.net/1g19xt3p/1/
And since jsfiddle doesn't work in IE8 here's a direct link to the result https://jsfiddle.net/1g19xt3p/1/embedded/result/
A small research showed that here's the code responsible
The thing is
elem.form
returns theform
attribute value in IE8 that is aString
and jQuery can't get the data out of aString
.The text was updated successfully, but these errors were encountered: