From: Jason Woofenden Date: Thu, 24 Dec 2015 14:07:55 +0000 (-0500) Subject: fix typo bugs X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=89080a8e4401225d87a619212c059102da15e2bb fix typo bugs --- 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'