@percy/dom 1.30.11-beta.3 → 1.30.11-beta.4

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 +7 -1
  2. package/package.json +2 -2
package/dist/bundle.js CHANGED
@@ -474,7 +474,13 @@
474
474
  cache.set(base64String, resource.url);
475
475
  }
476
476
  if (isHrefUsed === true) {
477
- node.href.baseVal = cache.get(base64String);
477
+ if (node.hasAttribute('xlink:href')) {
478
+ node.removeAttribute('xlink:href');
479
+ node.setAttribute('data-percy-serialized-attribute-xlink:href', cache.get(base64String));
480
+ } else {
481
+ node.removeAttribute('href');
482
+ node.setAttribute('data-percy-serialized-attribute-href', cache.get(base64String));
483
+ }
478
484
  } else {
479
485
  // we use data-percy-serialized-attribute-src here instead of `src`.
480
486
  // As soon as src is used the browser will try to load the resource,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/dom",
3
- "version": "1.30.11-beta.3",
3
+ "version": "1.30.11-beta.4",
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": "7ce086a9bc13a1f58cf71ba3ae0a69787ad2a0cb"
38
+ "gitHead": "f6b78917a050f858985d710d207a5651fb2cf56c"
39
39
  }