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);
|
const child = doc.createTextNode(value);
|
||||||
node.appendChild(child);
|
node.appendChild(child);
|
||||||
}
|
}
|
||||||
|
if (tagName === 'iframe' && name === 'src') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
node.setAttribute(name, value);
|
node.setAttribute(name, value);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ exports[`[html file]: iframe.html 1`] = `
|
|||||||
<title>iframe</title>
|
<title>iframe</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<iframe src=\\"http://localhost:3030/html/iframe-inner.html\\" width=\\"100\\" height=\\"50\\"></iframe>
|
<iframe width=\\"100\\" height=\\"50\\"></iframe>
|
||||||
</body></html>"
|
</body></html>"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user