Permalink
Browse files

Clarification of parsing of `require-sri-for`

Match tokens with known tokens case-insensitively in parsing algorithm
of `require-sri-for`.
  • Loading branch information...
1 parent 6c18285 commit adcf3f32e2e1a5ad5fd9affd3777529c5016cbf2 @shekyan shekyan committed Jul 7, 2016
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.bs
View
@@ -394,8 +394,9 @@ types which will require integrity checks:
2. For each |token| in the result of <a lt="split a string on spaces">
splitting |token list| on spaces</a>, if token matches the grammar
- for <a>require-sri-for</a>, add |token| to |protected resource types|
- if |token| is a <a>known token</a>. Otherwise, ignore the token.
+ for <a>require-sri-for</a> and is a <a>ASCII case-insensitive match</a>
+ for any of the <a>known token</a>s, add |token| to |protected resource types|.
+ Otherwise, ignore the token.
3. Return the set of |protected resource types|.

0 comments on commit adcf3f3

Please sign in to comment.