From 78bb1508accfeb4d7a280e3a6b3a081b98cd07b8 Mon Sep 17 00:00:00 2001 From: Zach Schneider Date: Tue, 1 Aug 2017 12:06:55 -0400 Subject: [PATCH] Remove unneeded check. (#961) Even if the el.tagName is a span, it will fall through to the child text node so the check is unneeded. --- src/serializers/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serializers/html.js b/src/serializers/html.js index 77c69fecf..bd797deda 100644 --- a/src/serializers/html.js +++ b/src/serializers/html.js @@ -33,7 +33,7 @@ const TEXT_RULE = { } } - if (el.tagName == 'span' || el.nodeName == '#text') { + if (el.nodeName == '#text') { if (el.value && el.value.match(//)) return return {