fix: SVG tag 大小写判断修复
This commit is contained in:
@@ -985,7 +985,7 @@
|
|||||||
pushCaptureChild(children, afterNode);
|
pushCaptureChild(children, afterNode);
|
||||||
|
|
||||||
// SVG → 序列化为 data URL 图片
|
// SVG → 序列化为 data URL 图片
|
||||||
if (element.tagName === "SVG" && !backgroundUrls.length) {
|
if ((element.tagName === "SVG" || element.tagName === "svg") && !backgroundUrls.length) {
|
||||||
try {
|
try {
|
||||||
const svgClone = element.cloneNode(true);
|
const svgClone = element.cloneNode(true);
|
||||||
// 确保有 xmlns
|
// 确保有 xmlns
|
||||||
|
|||||||
Reference in New Issue
Block a user