ichord / Caret.js

Get caret postion and offset from text field
http://ichord.github.com/Caret.js
MIT License
1.05k stars 163 forks source link

Access denied in IE10 in jsFiddle #27

Closed gkalabin closed 10 years ago

gkalabin commented 10 years ago

Hi! Simple demo on jsFiddle like this http://jsfiddle.net/gkalabin/LcCEw/ does't work in IE10:

SCRIPT5: Access is denied.
jquery.caret.js, line 133 character 9
ichord commented 10 years ago

I think that it's the iframe cross domain problem. jsfiddle is using iframe to show the result. Can you have a try on Caret.js home page to check if the problem is exists ? I can't find a windows shipping with IE 10.

Or you can try to issue console.log(document.domain); in jsfiddle to check if you can access the document object without errors. line 133 in jquery.caret.js is just trying to do this:

var oDocument = document;
oDocument.selection
ichord commented 10 years ago

please report here if the problem is still exists.