ignore iframe src attribute
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -119,7 +119,7 @@ exports[`[html file]: iframe.html 1`] = `
|
||||
<title>iframe</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src=\\"http://localhost:3030/html/iframe-inner.html\\" width=\\"100\\" height=\\"50\\"></iframe>
|
||||
<iframe width=\\"100\\" height=\\"50\\"></iframe>
|
||||
</body></html>"
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user