diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-03 09:49:01 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-03 09:49:01 +0200 |
commit | ca8ac554bfafe6b4d7985fe3130ff3dffa6029ca (patch) | |
tree | 5dcecd8f32564fb3fb95e8846344b0b26c05dc24 /src/utils | |
parent | d66be92f19e1004fd250ba1d020db2436f9eb65b (diff) | |
download | svg.js-ca8ac554bfafe6b4d7985fe3130ff3dffa6029ca.tar.gz svg.js-ca8ac554bfafe6b4d7985fe3130ff3dffa6029ca.zip |
doscontinue use of svgjs:data in favor of data-svg
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/utils.js b/src/utils/utils.js index 2438431..90ef548 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -135,8 +135,9 @@ export const writeDataToDom = (element, data, defaults = {}) => { } if (Object.keys(cloned).length) { - element.node.setAttribute('svgjs:data', JSON.stringify(cloned)) // see #428 + element.node.setAttribute('data-svgjs', JSON.stringify(cloned)) // see #428 } else { + element.node.removeAttribute('data-svgjs') element.node.removeAttribute('svgjs:data') } } |