mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-17 08:11:49 +03:00
a9de3d8fd2
Everything but attributes in the light dom is manually compared during DOM traversal, for example child nodes or scroll offset. This way we get a bullet-proof solution that works with input values, scroll offsets, shadow dom and anything else web comes up with. We also restore scroll only on the document scrolling element, for performance reasons. We should figure out the story around scrolling. Changes stationary snapshots from ~0.5ms to ~2.5ms due to DOM traversal. |
||
---|---|---|
.. | ||
snapshotter.ts | ||
snapshotterInjected.ts | ||
tracer.ts | ||
traceTypes.ts |