From 9d1d190e3170fb68a3a7084bdbd22ee28c4adab0 Mon Sep 17 00:00:00 2001 From: Shyam Raghuwanshi Date: Wed, 24 Jul 2024 14:17:41 +0530 Subject: [PATCH] fix not html not contains the type of an element --- util/page-parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/page-parser.js b/util/page-parser.js index 2af200f..14e869f 100644 --- a/util/page-parser.js +++ b/util/page-parser.js @@ -46,7 +46,8 @@ function createElement(node) { a[0] === 'role')) || // always log these a[0] === 'href' || - a[0] === 'id' + a[0] === 'id' || + a[0] === 'type' ); dataAttributes.forEach(([attr, value]) => { elem.setAttribute(attr, value);