all repos — grayfriday @ b79e720a36b6805be26938b176bb44cdabaace5d

blackfriday fork with a few changes

Make isHtmlTag() case insensitive
Vytautas Ĺ altenis Vytautas.Shaltenis@gmail.com
Sat, 13 Apr 2013 22:34:37 +0300
commit

b79e720a36b6805be26938b176bb44cdabaace5d

parent

a2fda5e98fedf99810df6fb0f5877988795a3733

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M html.gohtml.go

@@ -664,7 +664,7 @@ if j >= len(tagname) {

break } - if tag[i] != tagname[j] { + if strings.ToLower(string(tag[i]))[0] != tagname[j] { return false } }
M inline_test.goinline_test.go

@@ -67,6 +67,9 @@ func TestRawHtmlTag(t *testing.T) {

tests := []string{ "zz <style>p {}</style>\n", "<p>zz p {}</p>\n", + + "zz <STYLE>p {}</STYLE>\n", + "<p>zz p {}</p>\n", } doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE) }