From 66e9aafa4b99a448ce8082a4b9d238f2d1009f2c Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 23 Dec 2015 16:15:02 -0500 Subject: [PATCH] fix is_input_hidden_tok --- parse-html.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse-html.coffee b/parse-html.coffee index 255892f..fee4202 100644 --- a/parse-html.coffee +++ b/parse-html.coffee @@ -195,8 +195,8 @@ is_space_tok = (t) -> return t.type is TYPE_TEXT && t.text.length is 1 and space_chars.indexOf(t.text) > -1 is_input_hidden_tok = (t) -> - return unless t.type is TYPE_START_TAG - for a of t.attrs_a + return false unless t.type is TYPE_START_TAG + for a in t.attrs_a if a[0] is 'type' if a[1].toLowerCase() is 'hidden' return true -- 1.7.10.4