From 1fc793c673dff6c56bf40dba539ab35424b91ae1 Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Fri, 10 Dec 2021 15:29:32 -0800 Subject: [PATCH] Remove unneeded condition for stripping emu-metas with nothing to render --- src/Meta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Meta.ts b/src/Meta.ts index cebe016e..f7dd996d 100644 --- a/src/Meta.ts +++ b/src/Meta.ts @@ -47,7 +47,7 @@ export default class Meta extends Builder { span.appendChild(node.firstChild); } node.replaceWith(span); - } else if (node.parentElement) { + } else { // Nothing to render, strip it. node.replaceWith(...node.childNodes); }