You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When executed in Partytown web worker, DOM node traversal using TreeWalker never advances and falls into infinite loops.
To Reproduce
Steps to reproduce the behavior:
In a script block of type text/partytown, get a TreeWalker instance by calling document.createTreeWalker()
Traverse DOM nodes using the TreeWalker instance by:
consttreeWalker=document.createTreeWalker(document.body,1);do{// some code like:console.log(treeWalker.currentNode.nodeName);}while(treeWalker.nextNode());
Observation: the loop above never ends and treeWalker.currentNode is always the initial DOM node.
Reproduction link
A test case has been created in this PR. To run the test case:
npx playwright test tests/platform/tree-walker --browser=chromium
Expected behavior
The DOM tree traversal should advance and complete normally as being executed on main thread.
Partytown version
0.6.4
Screenshots
N/A.
Additional context
None.
The text was updated successfully, but these errors were encountered:
Partytown moves to QwikDev organization, this is a new beginning for the project. So it's time to clarify the status and clean up the current state a bit. This issue was automatically marked as deprecated and closed because it was not detected recent activity for 8 months, date of latest version. If this issue is still relevant, feel free to comment below and the maintainers will reopen it. Thank you for your contributions.
Describe the bug
When executed in Partytown web worker, DOM node traversal using TreeWalker never advances and falls into infinite loops.
To Reproduce
Steps to reproduce the behavior:
text/partytown
, get a TreeWalker instance by callingdocument.createTreeWalker()
treeWalker.currentNode
is always the initial DOM node.Reproduction link
A test case has been created in this PR. To run the test case:
npx playwright test tests/platform/tree-walker --browser=chromium
Expected behavior
The DOM tree traversal should advance and complete normally as being executed on main thread.
Partytown version
0.6.4
Screenshots
N/A.
Additional context
None.
The text was updated successfully, but these errors were encountered: