SVG会导致Chrome控制台中出现一行错误

时间:2014-10-17 08:01:08

标签: javascript html css google-chrome svg

具有纯JSHTML的静态页面以及在"对象中插入的svg文件"标签,一切都很好,但有一点我注意到控制台中有一堆错误。一切正常,但无论如何我想了解它的起源。

我尝试移动文件,清除缓存,在页面加载结束时使用JS代码附加svg,删除纯JS中的所有HTML离开文件,删除对svg本身的CSS文件,错误始终相同,只有在svg出局时才会显示。

Linux上的谷歌浏览器版本38.0.2125.58 beta写了三个, 在FF中我没有注意到任何类似的东西,我也没有测试过其他浏览器。问候

Error in event handler for (unknown): Cannot read property 'addEventListener' of null
Stack trace: TypeError: Cannot read property 'addEventListener' of null
    at initialize (chrome-extension://mdgdbmohcdjfbglkepkiaabaieenhhhc/inject.js:367:16)
    at handleMessage (chrome-extension://mdgdbmohcdjfbglkepkiaabaieenhhhc/inject.js:58:5)
    at EventImpl.dispatchToListener (extensions::event_bindings:397:22)
    at Event.publicClass.(anonymous function) [as dispatchToListener] (extensions::utils:93:26)
    at EventImpl.dispatch_ (extensions::event_bindings:379:35)
    at EventImpl.dispatch (extensions::event_bindings:403:17)
    at Event.publicClass.(anonymous function) [as dispatch] (extensions::utils:93:26)
    at dispatchOnMessage (extensions::messaging:304:22)             extensions::uncaught_exception_handler:9
handler                         extensions::uncaught_exception_handler:9
exports.handle                         extensions::uncaught_exception_handler:15
EventImpl.dispatch_                     extensions::event_bindings:384
EventImpl.dispatch                      extensions::event_bindings:403
target.(anonymous function)             extensions::SafeBuiltins:19
publicClass.(anonymous function)        extensions::utils:93
dispatchOnMessage                     extensions::messaging:304

0 个答案:

没有答案