X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=parse-html.coffee;h=8b2712d628cb820036240ac8a5624ea462d14d58;hp=cea8fa1d7eb9ce2efee1af721eb1d5e4a48d1d69;hb=9a16bd421661121f2d1d6463c0acba32065461ce;hpb=5056e7c63784b7c388e514feebdaf3bc296826c4 diff --git a/parse-html.coffee b/parse-html.coffee index cea8fa1..8b2712d 100644 --- a/parse-html.coffee +++ b/parse-html.coffee @@ -3343,6 +3343,11 @@ parse_html = (args) -> tok_state = tok_state_self_closing_start_tag return # fall through + if c is '>' + if is_appropriate_end_tag tok_cur_tag + tok_state = tok_state_data + return tok_cur_tag + # fall through if is_uc_alpha(c) tok_cur_tag.name += c.toLowerCase() temporary_buffer += c.toLowerCase()