Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta: Fix illegal closing tags #184

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ To <dfn>generate a segment wildcard regexp</dfn> given an [=/options=] |options|
1. Append the result of running [=escape a regexp string=] given |options|'s [=options/delimiter code point=] to the end of |result|.
1. Append "`]+?`" to the end of |result|.
1. Return |result|.
</div algorithm>
</div>

<div algorithm>
To <dfn>try to consume a token</dfn> given a [=pattern parser=] |parser| and [=token/type=] |type|:
Expand Down Expand Up @@ -1451,7 +1451,7 @@ To <dfn>escape a regexp string</dfn> given a string |input|:
<p>then append "<code>\</code>" to the end of |result|.
1. Append |c| to the end of |result|.
1. Return |result|.
</div algorithm>
</div>

<h3 id=converting-part-lists-to-pattern-strings>Converting Part Lists to Pattern Strings</h3>

Expand Down Expand Up @@ -1782,35 +1782,35 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
1. Let |strippedValue| be the given |value| with a single trailing U+003A (`:`) removed, if any.
1. If |type| is "`pattern`" then return |strippedValue|.
1. Return the result of running [=canonicalize a protocol=] given |strippedValue|.
</div algorithm>
</div>

<div algorithm>
To <dfn>process username for init</dfn> given a string |value| and a string |type|:

1. If |type| is "`pattern`" then return |value|.
1. Return the result of running [=canonicalize a username=] given |value|.
</div algorithm>
</div>

<div algorithm>
To <dfn>process password for init</dfn> given a string |value| and a string |type|:

1. If |type| is "`pattern`" then return |value|.
1. Return the result of running [=canonicalize a password=] given |value|.
</div algorithm>
</div>

<div algorithm>
To <dfn>process hostname for init</dfn> given a string |value| and a string |type|:

1. If |type| is "`pattern`" then return |value|.
1. Return the result of running [=canonicalize a hostname=] given |value|.
</div algorithm>
</div>

<div algorithm>
To <dfn>process port for init</dfn> given a string |portValue|, a string |protocolValue|, and a string |type|:

1. If |type| is "`pattern`" then return |portValue|.
1. Return the result of running [=canonicalize a port=] given |portValue| and |protocolValue|.
</div algorithm>
</div>

<div algorithm>
To <dfn>process pathname for init</dfn> given a string |pathnameValue|, a string |protocolValue|, and a string |type|:
Expand All @@ -1819,20 +1819,20 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
1. If |protocolValue| is a [=special scheme=] or the empty string, then return the result of running [=canonicalize a pathname=] given |pathnameValue|.
<p class=note>If the |protocolValue| is the empty string then no value was provided for {{URLPatternInit/protocol}} in the constructor dictionary. Normally we do not special case empty string dictionary values, but in this case we treat it as a [=special scheme=] in order to default to the most common pathname canonicalization.
1. Return the result of running [=canonicalize an opaque pathname=] given |pathnameValue|.
</div algorithm>
</div>

<div algorithm>
To <dfn>process search for init</dfn> given a string |value| and a string |type|:

1. Let |strippedValue| be the given |value| with a single leading U+003F (`?`) removed, if any.
1. If |type| is "`pattern`" then return |strippedValue|.
1. Return the result of running [=canonicalize a search=] given |strippedValue|.
</div algorithm>
</div>

<div algorithm>
To <dfn>process hash for init</dfn> given a string |value| and a string |type|:

1. Let |strippedValue| be the given |value| with a single leading U+0023 (`#`) removed, if any.
1. If |type| is "`pattern`" then return |strippedValue|.
1. Return the result of running [=canonicalize a hash=] given |strippedValue|.
</div algorithm>
</div>
Loading