summaryrefslogtreecommitdiff
path: root/libgo/go/html/template/css.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/html/template/css.go')
-rw-r--r--libgo/go/html/template/css.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/html/template/css.go b/libgo/go/html/template/css.go
index 318464835f..9154d8636d 100644
--- a/libgo/go/html/template/css.go
+++ b/libgo/go/html/template/css.go
@@ -243,13 +243,13 @@ func cssValueFilter(args ...interface{}) string {
return filterFailsafe
}
default:
- if c < 0x80 && isCSSNmchar(rune(c)) {
+ if c < utf8.RuneSelf && isCSSNmchar(rune(c)) {
id = append(id, c)
}
}
}
id = bytes.ToLower(id)
- if bytes.Index(id, expressionBytes) != -1 || bytes.Index(id, mozBindingBytes) != -1 {
+ if bytes.Contains(id, expressionBytes) || bytes.Contains(id, mozBindingBytes) {
return filterFailsafe
}
return string(b)