From 89080a8e4401225d87a619212c059102da15e2bb Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 24 Dec 2015 09:07:55 -0500 Subject: [PATCH] fix typo bugs --- parse-html.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse-html.coffee b/parse-html.coffee index f5437c9..3c861ba 100644 --- a/parse-html.coffee +++ b/parse-html.coffee @@ -1651,7 +1651,7 @@ parse_html = (args) -> parse_error() open_els.unshift head_element_pointer ins_mode_in_head t - for el, i of open_els + for el, i in open_els if el is head_element_pointer open_els.splice i, 1 return @@ -1721,7 +1721,7 @@ parse_html = (args) -> return unless second.name is 'body' return if template_tag_is_open() flag_frameset_ok = false - for a of t.attrs_a + for a in t.attrs_a second.attrs[a[0]] = a[1] unless second.attrs[a[0]]? return if t.type is TYPE_START_TAG and t.name is 'frameset' -- 1.7.10.4