return id node map when rebuild
This commit is contained in:
@@ -4,3 +4,6 @@ body {
|
||||
p {
|
||||
color: red;
|
||||
}
|
||||
body > p {
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>with style sheet</title>
|
||||
<style>body { margin: 0px; }p { color: red; }</style>
|
||||
<style>body { margin: 0px; }p { color: red; }body > p { color: yellow; }</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -99,7 +99,7 @@ describe('integration tests', () => {
|
||||
const rebuildHtml = (await page.evaluate(`${this.code}
|
||||
const x = new XMLSerializer();
|
||||
const [snap] = rrweb.snapshot(document);
|
||||
x.serializeToString(rrweb.rebuild(snap));
|
||||
x.serializeToString(rrweb.rebuild(snap)[0]);
|
||||
`)).replace(/\n\n/g, '');
|
||||
await page.goto(`http://localhost:3030/html`);
|
||||
await page.setContent(html.dest);
|
||||
|
||||
Reference in New Issue
Block a user