We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nextSibling
IGNORED_NODE
1 parent 0154a93 commit 1ca52e1Copy full SHA for 1ca52e1
packages/rrweb/src/record/mutation.ts
@@ -287,11 +287,10 @@ export default class MutationBuffer {
287
}
288
289
290
- let ns: Node | null = n;
291
- let nextId: number | null = IGNORED_NODE; // slimDOM: ignored
+ let nextId = nextSibling ? this.mirror.getId(nextSibling) : null;
292
while (nextId === IGNORED_NODE) {
293
- ns = ns && ns.nextSibling;
294
- nextId = ns && this.mirror.getId(ns);
+ nextSibling = nextSibling && nextSibling.nextSibling;
+ nextId = nextSibling && this.mirror.getId(nextSibling);
295
296
if (nextId === -1) {
297
continue;
0 commit comments