diff --git a/src/rebuild.ts b/src/rebuild.ts index 9a045000..2bba890e 100644 --- a/src/rebuild.ts +++ b/src/rebuild.ts @@ -65,6 +65,9 @@ function buildNode(n: serializedNodeWithId, doc: Document): Node | null { const child = doc.createTextNode(value); node.appendChild(child); } + if (tagName === 'iframe' && name === 'src') { + continue; + } try { node.setAttribute(name, value); } catch (error) { diff --git a/test/__snapshots__/integration.ts.snap b/test/__snapshots__/integration.ts.snap index 4658b966..2e9cac5b 100644 --- a/test/__snapshots__/integration.ts.snap +++ b/test/__snapshots__/integration.ts.snap @@ -119,7 +119,7 @@ exports[`[html file]: iframe.html 1`] = `