diff --git a/tst/init.lua b/tst/init.lua index 534ed8c..a3e1b44 100644 --- a/tst/init.lua +++ b/tst/init.lua @@ -287,3 +287,10 @@ function test_tagnames_with_hyphens() assert_equal("tag-name", tree("#9999")[1].name, "#9999") assert_equal("m", tree("#10000")[1].name, "#10000") end + +function test_loop_limit() + local tree = htmlparser.parse([[ +
+ ]]) -- issue#42 + assert(1==1) +end