Skip to content

Commit 93dd83b

Browse files
committed
Add strip URL as an exported algorithm
1 parent 04df81a commit 93dd83b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

index.bs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,22 @@ spec: STRUCTURED-FIELDS; urlPrefix: https://www.rfc-editor.org/rfc/rfc8941.html#
644644
Endpoint`".
645645

646646
8. Return "`Failure`".
647+
648+
<h3 id="strip-url-for-use-in-reports-heading">Strip URL for use in reports</h3>
649+
To <dfn algorithm export>strip URL for use in reports</dfn> given a [=/URL=] |url|,
650+
perform the following steps. They return a string representing the URL for use in reports.
651+
652+
1. If |url|'s <a for="url">scheme</a> is not an <a>HTTP(S) scheme</a>,
653+
then return |url|'s <a for="url">scheme</a>.
654+
655+
2. Set |url|’s <a for="url">fragment</a> to the empty string.
656+
657+
3. Set |url|’s <a for="url">username</a> to the empty string.
658+
659+
4. Set |url|’s <a for="url">password</a> to the empty string.
660+
661+
5. Return the result of executing the <a>URL serializer</a> on |url|.
662+
647663
</section>
648664

649665
<section>

0 commit comments

Comments
 (0)