@percy/dom 1.22.0 → 1.24.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.
Files changed (2) hide show
  1. package/dist/bundle.js +5 -0
  2. 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.22.0",
3
+ "version": "1.24.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": "473ae8925585bc77f584bbcaa7058fc967bd3c61"
37
+ "gitHead": "8de18f03aa611d539d45b40ba3af5accf237a78b"
38
38
  }