cavi-au / Consent-O-Matic

Browser extension that automatically fills out cookie popups based on your preferences
Other
2.53k stars 123 forks source link

TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. #417

Closed cassus closed 4 months ago

cassus commented 6 months ago

TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.

on this line:

observer.observe(document.querySelector("html"), { // this line
    childList: true
});

When an svg is loaded on the page as <object data="xxx.svg"></object>

As there is no html in the svg document

AUToelboell commented 6 months ago

On which website did you encounter this TypeError?

cassus commented 6 months ago

Here's an example page: https://app.tealcompass.com/results/4d3cd7c8-234a-4a22-87a8-51d651c83597 It's an app I'm working on, and the errors initially showed up on my local dev environment. I can only show it to you now that it's deployed.

Additionally the errors still show in the console if I uncheck the "Keep running on this site?" option

svnhub commented 5 months ago

This is a duplicate of #343, confirmed bug

svnhub commented 4 months ago

Fixed in the next release