-
Notifications
You must be signed in to change notification settings - Fork 13
Unable to get value of the property 'prototype' in IE #10
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
Comments
if it helps: also a second error that actually occurs before the one posted above (forgot to add earlier): User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; SearchToolbar 1.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.5.30729) Message: Object expected |
+1 IE8: Object Expected - line 507, character 5 |
I get the same thing. This is a showstopper for me. Shame, as it's potentially a really useful tool |
I've fixed it (a bit hacky mind) by removing the IE fallbacks and including selection.js instead. See this gist for more info: |
I did a clean fix. Apparently, IE behaves like this: (function () { (function () { This was already being done with Wysihat, I applied it to Range and Selection as well and it works. The patch is in my bugfix fork: https://github.com/carlocapocasa/jq-wysihat Pull request: #13 |
Great, thanks for that. However, it doesn't seem to work for me in Chrome. I get the error |
Just commited the fix... does it work? I just learned that JavaScript always executes var statements, even when they are in an if block. So my fixes var statements clobbered the Range and Selection objects with 'undefined'. Fixed now, just using straight global variables now. (function () { |
Yup, that seems to work perfectly - thanks! Only thing that doesn't work is the header selection stuff (in examples/dropdown.html), but I don't think that's your fault. Will try and fix and add a pull request. |
Nice! Merged it. |
I just started digging into jq-wysihat and was running some testing in IE. In all other browsers, the editor seems to be working as expected, but IE doesn't want to cooperate.
currently getting the following error:
Message: Unable to get value of the property 'prototype': object is null or undefined
Line: 569
Char: 3
Code: 0
URI: *****example.com/js/wysihat/jq-wysihat.js
Any thoughts/suggestions?
The text was updated successfully, but these errors were encountered: