From ecc1a0d77ed66e927e12d3b07d07ddc11bb3f1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=9B?= Date: Mon, 27 Jul 2026 15:40:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20SVG=20tag=20=E5=A4=A7=E5=B0=8F=E5=86=99?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-to-ppt/capture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-to-ppt/capture.js b/web-to-ppt/capture.js index 77043c5..f894ebc 100644 --- a/web-to-ppt/capture.js +++ b/web-to-ppt/capture.js @@ -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