Skip to content

[Bug]: DOM Nodes missing / out of order in Mobile browsers #1690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
carlosdanieltt opened this issue May 8, 2025 · 0 comments
Open
1 task done

[Bug]: DOM Nodes missing / out of order in Mobile browsers #1690

carlosdanieltt opened this issue May 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@carlosdanieltt
Copy link

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb

Version

v2.0.0-alpha.18

Expected Behavior

The replay should show the DOM nodes in the order they appear to the user and there shouldn't be any sections missing.

Actual Behavior

There is a missing section in the replay and another section is displayed in the wrong order.

Steps to Reproduce

Open the following page in Mobile Safari (tested with Safari on an iOS device, but also reproduces on Android): https://www.kkday.com/zh-hk/product/120782-the-kowloon-hotel-the-window-cafe-buffet

Note the DOM nodes that are children of the section with id="productDetailApp" in the Safari dev console:
Image

Especially note the div with id="review-section" and the div with id="recommend-products-sec". The div with id="review-section" appears on the page just before the div with id="product-info-sec". The div with id="recommend-products-sec" appears near the bottom of the page after the div with id="get-help-sec".

Do an rrweb recording of the page and watch it.

Or use this rrwebdebug: https://rrwebdebug.com/play/index.html?url=https%3A%2F%2Fgist.github.com%2Fcarlosdanieltt%2F86290ae8e3fca1101d05659045d1494b&version=2.0.0-alpha.15&virtual-dom=on&play=on
Gist for the above: https://gist.github.com/carlosdanieltt/86290ae8e3fca1101d05659045d1494b

Note that that "review-section" node is gone and has been replaced by the "recommend-products-sec" node, which is now above the "product-info-sec" node.

Note the DOM nodes inside the rrweb player:
Image

Testcase Gist URL

https://rrwebdebug.com/play/index.html?url=https%3A%2F%2Fgist.github.com%2Fcarlosdanieltt%2F86290ae8e3fca1101d05659045d1494b&version=2.0.0-alpha.15&virtual-dom=on&play=on

Additional Information

No response

@carlosdanieltt carlosdanieltt added the bug Something isn't working label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant