你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/4255-linkify-plus-plus/discussions/9459,源站連結 點此以跳轉

Linkify Plus Plus

Based on Linkify Plus. Turn plain text URLs into links.

< 脚本 Linkify Plus Plus 的反馈

提问 / 留言

§
发布于:2015-01-20

Uncaught TypeError: Cannot read property 'parentNode' of null (Chrome 40.0.2214.85)

This sometimes happens on youtube when quickly hovering over buttons that have a custom tooltip like this https://i.imgur.com/n5s63I7.png

Uncaught TypeError: Cannot read property 'parentNode' of null 

https://i.imgur.com/6uV7wf0.png

at this line:

while (node.parentNode != document.documentElement) {

This effectively crashes the script and no more linkifying occurs after that.

In my investigation it seems the to happen because it traverses the node which is no longer part the document (its added when you hover over and then removed when the mouse leaves, before the traverser finishes parsing). The last node before crash was a tooltip and after checking it has a null parentNode.

eight作者
§
发布于:2015-01-21

Fixed in 3.2.3 :D

§
发布于:2015-01-21

Thanks :)

发布留言

登录以发布留言。