@percy/dom 1.27.4-beta.0 → 1.27.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +5 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -379,6 +379,8 @@
|
|
|
379
379
|
* Deep clone a document while also preserving shadow roots
|
|
380
380
|
* returns document fragment
|
|
381
381
|
*/
|
|
382
|
+
|
|
383
|
+
const ignoreTags = ['NOSCRIPT'];
|
|
382
384
|
function cloneNodeAndShadow(_ref) {
|
|
383
385
|
let {
|
|
384
386
|
dom,
|
|
@@ -388,7 +390,9 @@
|
|
|
388
390
|
let cloneNode = (node, parent) => {
|
|
389
391
|
let walkTree = (nextn, nextp) => {
|
|
390
392
|
while (nextn) {
|
|
391
|
-
|
|
393
|
+
if (!ignoreTags.includes(nextn.nodeName)) {
|
|
394
|
+
cloneNode(nextn, nextp);
|
|
395
|
+
}
|
|
392
396
|
nextn = nextn.nextSibling;
|
|
393
397
|
}
|
|
394
398
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/dom",
|
|
3
|
-
"version": "1.27.4-beta.
|
|
3
|
+
"version": "1.27.4-beta.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"interactor.js": "^2.0.0-beta.10"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "9dc3b46642f608a762a7c4a1ca564813ece1b370"
|
|
39
39
|
}
|