admin管理员组文章数量:1328557
What does this error mean in IE10/11:
Error: Could not plete the operation due to error 800a025e.
And how would I debug it?
It says its this line:
this.nativeSelection.removeAllRanges();
.js#416
See it in action here: .html
What does this error mean in IE10/11:
Error: Could not plete the operation due to error 800a025e.
And how would I debug it?
It says its this line:
this.nativeSelection.removeAllRanges();
https://code.google./p/rangy/source/browse/trunk/src/js/core/wrappedselection.js#416
See it in action here: http://panmedia.github.io/raptor-editor/tests/cases/selection/selection-expand.html
Share Improve this question edited Dec 15, 2015 at 19:24 Sampson 269k76 gold badges545 silver badges568 bronze badges asked Apr 23, 2013 at 4:30 PetahPetah 46.1k30 gold badges160 silver badges215 bronze badges 7- stackoverflow./questions/3169786/… – Ian Commented Apr 23, 2013 at 4:45
- An example would help. – Tim Down Commented Apr 23, 2013 at 8:53
-
I'm also getting the exact same error when calling
removeAllRanges()
in IE9, sporadically though. @TimDown I'm thinking of using your rangy library to see if the error goes away... but first I think I'll try stackoverflow./a/3171348/227299 – Ruan Mendes Commented Feb 28, 2014 at 19:21 - Can you provide a jsfiddle? – Dom Commented Jun 2, 2014 at 22:46
- 3 stackoverflow./questions/22914075/… – The Alpha Commented Jun 3, 2014 at 0:38
3 Answers
Reset to default 4I had this error ing up recently, I fixed it with the following chceck:
var sel = window.document.getSelection();
if (sel.rangeCount > 0 && sel.getRangeAt(0).getClientRects().length > 0) {
sel.removeAllRanges();
}
I got this error when trying to window.getSelection().removeAllRanges();
and there was no selection. One workaround is to check if there is a selection first:
if (window.getSelection().getRangeAt(0).getClientRects().length > 0) {
window.getSelection().removeAllRanges();
}
All the error 80020101 means is that there was an error, of some sort, while evaluating JavaScript. If you load that JavaScript via Ajax, the evaluation process is particularly strict.
Could not plete the operation due to error 80020101. IE
本文标签: javascriptCould not complete the operation due to error 800a025eStack Overflow
版权声明:本文标题:javascript - Could not complete the operation due to error 800a025e - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742250236a2440615.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论