Update document-cloner.ts

the method of getComputedStyle.content maybe 'normal'.
This commit is contained in:
guoqing 2022-07-05 17:35:07 +08:00
parent 6020386bbe
commit 31e8b19171

View File

@ -387,7 +387,7 @@ export class DocumentCloner {
const value = style.content; const value = style.content;
const document = clone.ownerDocument; 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; return;
} }