@percy/dom 1.24.1 → 1.24.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.
Files changed (2) hide show
  1. package/dist/bundle.js +3 -1
  2. package/package.json +2 -2
package/dist/bundle.js CHANGED
@@ -401,7 +401,9 @@
401
401
  includeShadowRoots: true
402
402
  });
403
403
  docElement.textContent = '';
404
- return docElement.outerHTML.replace('</html>', `${innerHTML}</html>`);
404
+ // Note: Here we are specifically passing replacer function to avoid any replacements due to
405
+ // special characters in client's dom like $&
406
+ return docElement.outerHTML.replace('</html>', () => `${innerHTML}</html>`);
405
407
  }
406
408
 
407
409
  // we inject declarative shadow dom polyfill to allow shadow dom to load in non chromium infrastructure browsers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/dom",
3
- "version": "1.24.1",
3
+ "version": "1.24.2",
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": "289eb8467fd317b6c17decc5d4f1b6586aa7b75e"
37
+ "gitHead": "b9c37345b1feebd06f3c87a6a6accf8cdb6d29a5"
38
38
  }