From 640b0edffbe542931999a26c34161fbaaf4bb5c4 Mon Sep 17 00:00:00 2001 From: Jeremy Roman Date: Tue, 12 Sep 2023 17:35:48 +0200 Subject: [PATCH] Meta: Fix illegal closing tags --- spec.bs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spec.bs b/spec.bs index ce610bb..38656ab 100644 --- a/spec.bs +++ b/spec.bs @@ -1224,7 +1224,7 @@ To generate a segment wildcard regexp 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|. - +
To try to consume a token given a [=pattern parser=] |parser| and [=token/type=] |type|: @@ -1451,7 +1451,7 @@ To escape a regexp string given a string |input|:

then append "\" to the end of |result|. 1. Append |c| to the end of |result|. 1. Return |result|. -

+

Converting Part Lists to Pattern Strings

@@ -1782,35 +1782,35 @@ To convert a modifier to a string 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|. - +
To process username for init 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|. -
+
To process password for init 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|. -
+
To process hostname for init 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|. -
+
To process port for init 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|. -
+
To process pathname for init given a string |pathnameValue|, a string |protocolValue|, and a string |type|: @@ -1819,7 +1819,7 @@ To convert a modifier to a string 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|.

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|. -

+
To process search for init given a string |value| and a string |type|: @@ -1827,7 +1827,7 @@ To convert a modifier to a string given a [=part/modifier=] |modifier 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|. -
+
To process hash for init given a string |value| and a string |type|: @@ -1835,4 +1835,4 @@ To convert a modifier to a string given a [=part/modifier=] |modifier 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|. -
+