fix: SVG tag 大小写判断修复

This commit is contained in:
李进
2026-07-27 15:40:47 +08:00
parent 5ef970337d
commit ecc1a0d77e
+1 -1
View File
@@ -985,7 +985,7 @@
pushCaptureChild(children, afterNode);
// SVG → 序列化为 data URL 图片
if (element.tagName === "SVG" && !backgroundUrls.length) {
if ((element.tagName === "SVG" || element.tagName === "svg") && !backgroundUrls.length) {
try {
const svgClone = element.cloneNode(true);
// 确保有 xmlns