We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rrweb-snapshot.js
function transformAttribute(doc, name, value) { if (name === 'src' || ((name === 'href' || name === 'xlink:href') && value)) { return absoluteToDoc(doc, value); // 这个方法给svg路径默认添加了域名绝对路径,导致svg无法显示 } else if (name === 'srcset' && value) { return getAbsoluteSrcsetString(doc, value); } else if (name === 'style' && value) { return absoluteToStylesheet(value, location.href); } else { return value; } }
能否判断svg标签,直接将value返回
if (name === 'xlink:href') { return value; }
The text was updated successfully, but these errors were encountered:
引入问题的 PR:rrweb-io/rrweb-snapshot#55
Sorry, something went wrong.
18d66dc
No branches or pull requests
rrweb-snapshot.js
能否判断svg标签,直接将value返回
The text was updated successfully, but these errors were encountered: