@@ -1120,7 +1120,7 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity
11201120 1. Let |hash| be the [=concatenation=] of |algorithm|, U+2D (-), and |h|.
11211121 1. Let |global| be the |request|'s [=request/client=]' s [=/global object=] .
11221122 1. If |global| is not a {{Window}} , return.
1123- 1. Let |stripped document URL| to be the result of executing [[#strip-url- for- use-in- reports] ]
1123+ 1. Let |stripped document URL| to be the result of [=stripping URL for use in reports= ]
11241124 on |global|'s [=associated document|document=]' s [=Document/URL=] .
11251125 1. If |policy|'s [=directive set=] does not contain a [=directive=] named "report-to", return.
11261126 1. Let |report-to directive| be a [=directive=] named "report-to" from |policy|'s [=directive
@@ -1744,8 +1744,8 @@ Content-Type: application/reports+json
17441744
17451745 1. Assert: |resource| is a [=/URL=] or a [=string=] .
17461746
1747- 2. If |resource| is a [=/URL=] , return the result of executing [[#strip-url- for- use-in- reports]] on
1748- |resource|.
1747+ 2. If |resource| is a [=/URL=] , return the result of [=stripping URL for use in reports=]
1748+ on |resource|.
17491749
17501750 3. Return |resource|.
17511751
@@ -1761,10 +1761,10 @@ Content-Type: application/reports+json
17611761 follows:
17621762
17631763 : "`document-uri`"
1764- :: The result of executing [[#strip-url- for- use-in- reports] ] on |violation|'s
1764+ :: The result of [=stripping URL for use in reports= ] on |violation|'s
17651765 <a for="violation">url</a> .
17661766 : "`referrer`"
1767- :: The result of executing [[#strip-url- for- use-in- reports] ] on |violation|'s
1767+ :: The result of [=stripping URL for use in reports= ] on |violation|'s
17681768 <a for="violation">referrer</a> .
17691769 : "`blocked-uri`"
17701770 :: The result of executing [[#obtain-violation-blocked-uri]] on |violation|'s
@@ -1793,7 +1793,7 @@ Content-Type: application/reports+json
17931793
17941794 2. If |violation|'s <a for="violation">source file</a> is not null:
17951795
1796- 1. Set |body|["`source-file`'] to the result of executing [[#strip-url- for- use-in- reports] ]
1796+ 1. Set |body|["`source-file`'] to the result of [=stripping URL for use in reports= ]
17971797 on |violation|'s <a for="violation">source file</a> .
17981798
17991799 2. Set |body|["`line-number`"] to |violation|'s
@@ -1808,9 +1808,9 @@ Content-Type: application/reports+json
18081808 4. Return the result of <a>serialize an infra value to JSON bytes</a> given
18091809 «[ "csp-report" → body ] ».
18101810
1811- <h3 id="strip-url-for-use-in-reports" algorithm >Strip URL for use in reports</h3>
1812- Given a [=/URL=] |url|, this algorithm returns a string representing the URL for use in violation
1813- reports:
1811+ <h3 id="strip-url-for-use-in-reports-heading" >Strip URL for use in reports</h3>
1812+ To <dfn algorithm>strip URL for use in reports</dfn> given a [=/URL=] |url|,
1813+ perform the following steps. They return a string representing the URL for use in violation reports.
18141814
18151815 1. If |url|'s <a for="url">scheme</a> is not an <a>HTTP(S) scheme</a> ,
18161816 then return |url|'s <a for="url">scheme</a> .
@@ -1865,10 +1865,10 @@ Content-Type: application/reports+json
18651865 interface at |target| with its attributes initialized as follows:
18661866
18671867 : {{SecurityPolicyViolationEvent/documentURI}}
1868- :: The result of executing [[#strip-url- for- use-in- reports] ] on |violation|'s
1868+ :: The result of [=stripping URL for use in reports= ] on |violation|'s
18691869 <a for="violation">url</a> .
18701870 : {{SecurityPolicyViolationEvent/referrer}}
1871- :: The result of executing [[#strip-url- for- use-in- reports] ] on |violation|'s
1871+ :: The result of [=stripping URL for use in reports= ] on |violation|'s
18721872 <a for="violation">referrer</a> .
18731873 : {{SecurityPolicyViolationEvent/blockedURI}}
18741874 :: The result of executing [[#obtain-violation-blocked-uri]] on |violation|'s
@@ -1883,7 +1883,7 @@ Content-Type: application/reports+json
18831883 : {{SecurityPolicyViolationEvent/disposition}}
18841884 :: |violation|'s <a for="violation">disposition</a>
18851885 : {{SecurityPolicyViolationEvent/sourceFile}}
1886- :: The result of executing [[#strip-url- for- use-in- reports] ] on |violation|'s
1886+ :: The result of [=stripping URL for use in reports= ] on |violation|'s
18871887 <a for="violation">source file</a> , if |violation|'s
18881888 <a for="violation">source file</a> is not null, or null otherwise.
18891889 : {{SecurityPolicyViolationEvent/statusCode}}
@@ -1976,11 +1976,11 @@ Content-Type: application/reports+json
19761976 follows:
19771977
19781978 : {{CSPViolationReportBody/documentURL}}
1979- :: The result of executing [[#strip-url- for- use-in- reports] ] on |violation|'s
1979+ :: The result of [=stripping URL for use in reports= ] on |violation|'s
19801980 <a for="violation">url</a> .
19811981
19821982 : {{CSPViolationReportBody/referrer}}
1983- :: The result of executing [[#strip-url- for- use-in- reports] ] on |violation|'s
1983+ :: The result of [=stripping URL for use in reports= ] on |violation|'s
19841984 <a for="violation">referrer</a> .
19851985
19861986 : {{CSPViolationReportBody/blockedURL}}
@@ -1995,7 +1995,7 @@ Content-Type: application/reports+json
19951995 <a for="violation">policy</a> .
19961996
19971997 : {{CSPViolationReportBody/sourceFile}}
1998- :: The result of executing [[#strip-url- for- use-in- reports] ] on |violation|'s
1998+ :: The result of [=stripping URL for use in reports= ] on |violation|'s
19991999 <a for="violation">source file</a> , if |violation|'s
20002000 <a for="violation">source file</a> is not null, or null otherwise.
20012001
0 commit comments