From 2cd2ff6f564dce5be0c4fb7f06338ff7af3fc9a9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 8 Jun 2020 12:39:56 -0400 Subject: all: avoid awkward wording from CL 236857 CL 236857 removed all uses of whitelist/blacklist, which is great. But it substituted awkward phrasing using allowlist/blocklist, especially as verbs or participles. This CL uses more standard English, like "allow the function" or "blocked functions" instead of "allowlist the function" or "blocklisted functions". Change-Id: I9106a2fdbd62751c4cbda3a77181358a8a6d0f13 Reviewed-on: https://go-review.googlesource.com/c/go/+/236917 Run-TryBot: Russ Cox Reviewed-by: Ian Lance Taylor --- src/html/template/html.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/html/template') diff --git a/src/html/template/html.go b/src/html/template/html.go index d3359cac0a..356b8298ae 100644 --- a/src/html/template/html.go +++ b/src/html/template/html.go @@ -240,8 +240,7 @@ func htmlNameFilter(args ...interface{}) string { } s = strings.ToLower(s) if t := attrType(s); t != contentTypePlain { - // TODO: Split attr and element name part filters so we can allowlist - // attributes. + // TODO: Split attr and element name part filters so we can recognize known attributes. return filterFailsafe } for _, r := range s { -- cgit v1.3