Uncaught TypeError: Object #<HTMLLIElement> has no method 'find' in Chrome

心已入冬 提交于 2019-12-05 21:20:16

This may help better programmers than me zero in on a solution:

I've been noticing this error for the past week on a JS page-builder interface that I wrote myself. (No TinyMCE, but tons of jQuery plugins.) I've come to the same conclusions as the author of this ticket, i.e., jQuery is erroneously calling find() on a plain DOM element.

The interesting thing is that the problem goes away when you close the Chrome Debugger. (I'm sure we can all appreciate the irony of that one.)

I know that that doesn't bring you any closer to a solution, but at least you can rest assured that 99.9% of your users (unless they're coming from StackOverflow I suppose) will probably never see this problem.

I believe this is a bug in Google chrome document Inspector. There is a family of related errors. It doesn't happen in other browsers. One good thing is that most users won't find this error. On the other hand, I lost 3 hrs trying to debug the problem with document inspector, when the actual solution was to close the document inspector!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!