From 31e8b19171e56fd2c916bfeefad83af7f4ed55f5 Mon Sep 17 00:00:00 2001 From: guoqing Date: Tue, 5 Jul 2022 17:35:07 +0800 Subject: [PATCH] Update document-cloner.ts the method of getComputedStyle.content maybe 'normal'. --- src/dom/document-cloner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/document-cloner.ts b/src/dom/document-cloner.ts index 08faa29..1b86b7b 100644 --- a/src/dom/document-cloner.ts +++ b/src/dom/document-cloner.ts @@ -387,7 +387,7 @@ export class DocumentCloner { const value = style.content; const document = clone.ownerDocument; - if (!document || !value || value === 'none' || value === '-moz-alt-content' || style.display === 'none') { + if (!document || !value || value === 'normal' || value === 'none' || value === '-moz-alt-content' || style.display === 'none') { return; }