-
Notifications
You must be signed in to change notification settings - Fork 226
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
SCRIPT438: Object doesn't support property or method 'getAttribute' #55
Comments
Can you please try to reduce the markup within your form to the bare minimum that reproduces this error and then add it to this issue? That would help me in trying to debug it. |
So apparently our former developer decided to invent a new html attribute form="" and then specified the form id as the value. When removed this fixed the issue. I would be interested in created a PR but based on the research I did in IE8 you would need to wrap it in a try catch and I am not sure you want that in your code, any other suggestions or do you think it is safe to assume developers are not complete morons when it comes to inventing their own attributes? |
Thanks for reporting this.
No, it's not really safe considering it's very common in e.g. AngularJS (attribute directives). If we can resolve this without wrapping everything in a |
The If it is used its value should always be the ID of a form element in the same document, so I've fixed this by checking whether Thanks again for reporting this. |
interesting... well glad i could help |
In IE8 (emulated), IE9 emulated works fine. Using (v3.0.1 unminified, 19kB) line 323.
The text was updated successfully, but these errors were encountered: