diff --git a/src/html/template/transition.go b/src/html/template/transition.go
index d5a05f66da4..b897bea5421 100644
--- a/src/html/template/transition.go
+++ b/src/html/template/transition.go
@@ -414,7 +414,7 @@ func tJSDelimited(c context, s []byte) (context, int) {
// If " 0 && i+7 <= len(s) && bytes.Compare(bytes.ToLower(s[i-1:i+7]), []byte(" 0 && i+7 <= len(s) && bytes.Equal(bytes.ToLower(s[i-1 : i+7]), []byte("