@percy/dom 1.22.0 → 1.23.0
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 -0
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -357,6 +357,11 @@
|
|
|
357
357
|
let clone = node.cloneNode();
|
|
358
358
|
parent.appendChild(clone);
|
|
359
359
|
|
|
360
|
+
// shallow clone should not contain children
|
|
361
|
+
if (clone.children) {
|
|
362
|
+
Array.from(clone.children).forEach(child => clone.removeChild(child));
|
|
363
|
+
}
|
|
364
|
+
|
|
360
365
|
// clone shadow DOM
|
|
361
366
|
if (node.shadowRoot && !disableShadowDOM) {
|
|
362
367
|
// create shadowRoot
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/dom",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"interactor.js": "^2.0.0-beta.10"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "cd9a0de3f51233e414cd2657997ce02e8faa19e2"
|
|
38
38
|
}
|