Fix bug in isHtmlTag() Fix what seems to be a typo. j should iterate through all tagname, so it should be initialized to zero. The test exposes this bug.
Vytautas Ĺ altenis Vytautas.Shaltenis@gmail.com
Sat, 13 Apr 2013 22:21:47 +0300
2 files changed,
9 insertions(+),
1 deletions(-)
M
inline_test.go
→
inline_test.go
@@ -63,6 +63,14 @@ }
} } +func TestRawHtmlTag(t *testing.T) { + tests := []string{ + "zz <style>p {}</style>\n", + "<p>zz p {}</p>\n", + } + doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE) +} + func TestEmphasis(t *testing.T) { var tests = []string{ "nothing inline\n",