garfish icon indicating copy to clipboard operation
garfish copied to clipboard

Failed to execute 'setAttributeNS' on 'Element'

Open zhoushaw opened this issue 2 years ago • 2 comments

Describe the bug

  • 子应用中有个 svg 有属性 xmlns:xlink,garfish 加载它的时候会报错

可以通过官网 Demo 这里复现:https://stackblitz.com/edit/garfish-demo?file=sub%2Fpublic%2Findex.html 在这个文件 的 body 里加一行

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position: absolute; width: 0; height: 0">

Reproduction

https://stackblitz.com/edit/garfish-demo?file=sub%2Fpublic%2Findex.html

Used Package Manager

pnpm

System Info

System:
    OS: macOS 12.4
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 160.57 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 102.0.5005.115
    Safari: 15.5
  npm
    garfish: 1.8.2

Validations

zhoushaw avatar Jun 22 '22 04:06 zhoushaw

请问这个问题解决了吗,我在1.9.0复现了这个问题。

workkk98 avatar Aug 03 '22 12:08 workkk98

+1, 我们也遇到了这个问题, 请问有解决方案了么

ifibercc avatar Aug 03 '22 12:08 ifibercc