[x] I am interested in helping provide a fix! - Though I've got no clue where I'd start with this, so any pointers would be much appriciated.
Describe the bugdocument.createRange() methods don't work. Trying to add an element to the DOM using selectNode and createContextualFragment does not work.
The exact same code works when ran without partytown.
Expected behavior
The text "Hello there :)" should be visible on the page.
Partytown version
v0.7.0 (latest at time of writing)
Additional context
Issue could be that that the Range has a commonAncestorContainer that is #document rather than body which seems to be the browser default. And even when using selectNode it cant be changed.
Describe the bug
document.createRange()
methods don't work. Trying to add an element to the DOM using selectNode and createContextualFragment does not work.The exact same code works when ran without partytown.
To Reproduce Steps to reproduce the behavior:
Reproduction link
npx http-server .
.Expected behavior The text "Hello there :)" should be visible on the page.
Partytown version v0.7.0 (latest at time of writing)
Additional context Issue could be that that the
Range
has a commonAncestorContainer that is#document
rather than body which seems to be the browser default. And even when using selectNode it cant be changed.