Skip to content

Commit 0f6446a

Browse files
authored
Export DFNs used in Permissions-Policy (#607)
Specifically: `scheme-source`, `host-source`, and `Does url match expression in origin with redirect count?`. These are used in w3c/webappsec-permissions-policy#516 closes #604
1 parent 60ae56b commit 0f6446a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,10 +682,10 @@ spec: WebRTC; urlPrefix: https://www.w3.org/TR/webrtc/
682682
/ <a>nonce-source</a> / <a>hash-source</a>
683683

684684
; Schemes: "https:" / "custom-scheme:" / "another.custom-scheme:"
685-
<dfn>scheme-source</dfn> = <a>scheme-part</a> ":"
685+
<dfn export>scheme-source</dfn> = <a>scheme-part</a> ":"
686686

687687
; Hosts: "example.com" / "*.example.com" / "https://*.example.com:12/path/to/file.js"
688-
<dfn>host-source</dfn> = [ <a>scheme-part</a> "://" ] <a>host-part</a> [ ":" <a>port-part</a> ] [ <a>path-part</a> ]
688+
<dfn export>host-source</dfn> = [ <a>scheme-part</a> "://" ] <a>host-part</a> [ ":" <a>port-part</a> ] [ <a>path-part</a> ]
689689
<dfn>scheme-part</dfn> = <a>scheme</a>
690690
; <a>scheme</a> is defined in section 3.1 of RFC 3986.
691691
<dfn>host-part</dfn> = "*" / [ "*." ] 1*<a>host-char</a> *( "." 1*<a>host-char</a> )
@@ -3861,7 +3861,7 @@ this algorithm returns normally if compilation is allowed, and throws a
38613861

38623862
5. Return "`Does Not Match`".
38633863

3864-
<h5 id="match-url-to-source-expression" algorithm>
3864+
<h5 id="match-url-to-source-expression" algorithm dfn export>
38653865
Does |url| match |expression| in |origin| with |redirect count|?
38663866
</h5>
38673867

0 commit comments

Comments
 (0)