Closed ldko closed 5 months ago
Have a fix for this in wabac.js, unfortunately, this requires JS parsing, and not directly tied to wombat, so will need to be addressed separately for pywb, but will be fixed in replayweb.page more easily.
The approach is similar to that of #82, where it is necessary to detect global vars by parsing JS and ignore overriding parent
and others if they are redeclared in the global scope.
When replaying this web page in pywb one of the elements is not loading:
There is an error displayed in the console:
It looks like the code that wombat.js inserts into one of the JavaScript files is causing this because it declares
parent
which is also declared in the original code:The issue can similarly be seen on the page replayed in Internet Archive's Wayback that also uses wombat.js.
The element loads correctly in OpenWayback that does not use wombat.js:![carousel](https://github.com/webrecorder/wombat/assets/6740390/960e1367-cd53-46f4-852f-c6c663fa3d9d)
This seems similar to what someone commented on in another issue.