From 4ef754cc4314908ee529f9aff6df0246ccdd7882 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotowicz Date: Tue, 5 Nov 2024 09:26:42 +0100 Subject: [PATCH] Sink group should be single-quoted only in CSP syntax. Fixes #542 --- spec/index.bs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/index.bs b/spec/index.bs index f093390..5495532 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -1293,8 +1293,9 @@ ABNF:
 directive-name = "require-trusted-types-for"
-directive-value = trusted-types-sink-group *( required-ascii-whitespace trusted-types-sink-group)
-trusted-types-sink-group = "'script'"
+directive-value = trusted-types-sink-group-keyword *( required-ascii-whitespace trusted-types-sink-group-keyword)
+trusted-types-sink-group-keyword = "'" trusted-types-sink-group "'"
+trusted-types-sink-group = "script"