Skip to content

Commit

Permalink
Sink group should be single-quoted only in CSP syntax.
Browse files Browse the repository at this point in the history
Fixes #542
  • Loading branch information
koto committed Nov 5, 2024
1 parent 72ecd2c commit 4ef754c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1293,8 +1293,9 @@ ABNF:

<pre>
directive-name = "require-trusted-types-for"
directive-value = <a>trusted-types-sink-group</a> *( <a href="https://w3c.github.io/webappsec-csp/#grammardef-required-ascii-whitespace">required-ascii-whitespace</a> <a>trusted-types-sink-group</a>)
<dfn>trusted-types-sink-group</dfn> = "'script'"
directive-value = <a>trusted-types-sink-group-keyword</a> *( <a href="https://w3c.github.io/webappsec-csp/#grammardef-required-ascii-whitespace">required-ascii-whitespace</a> <a>trusted-types-sink-group-keyword</a>)
<dfn>trusted-types-sink-group-keyword</dfn> = "'" <a>trusted-types-sink-group</a> "'"
<dfn>trusted-types-sink-group</dfn> = "script"
</pre>

<div class="example" id="require-tt-for-script-header">
Expand Down

0 comments on commit 4ef754c

Please sign in to comment.