document.implementation.createHTMLDocument cicumvents patchDocument
#174
Labels
help wanted
Extra attention is needed
needs reproduction
Needs more information and a way to reproduce the issue
I'm trying to load Full Story via Partytown. I'm using the partytown repo and following the Local Development setup to test the integration in isolation as it is not a currently supported script.
The Full Story script is fetched via a reverse proxy, then when it starts being executed via Partytown, something blows up.
Drilling into the error, it looks like Full Story is trying to create an element on
Document
object they've created. Essentially these two lines of code:The second line fails, because
createElement
, which is an instance ofWorkerBase
returnsundefined
. Digging in a bit it looks like the value supplied forwinId
from thecreateElement
function, (const winId = this[WinIdKey];
) doesn't map to an environment. So whengetOrCreateNodInstance
tries to lookup the environment it fails to do so.I'll plan to try to further isolate this, but that's what I have found so far. Any help or clues would be appreciated. I'm also attaching the debugging output in case that is helpful.
The text was updated successfully, but these errors were encountered: