From 502f120278199c5558ec38566087bf8ecb184896 Mon Sep 17 00:00:00 2001 From: Yoshisato Yanagisawa Date: Tue, 5 Mar 2024 12:52:23 +0900 Subject: [PATCH] Editorial: Fix RFC2119 keyword warnings The current specification uses "should" and "may" in non-normative sections. They are recognized as RFC2119 keywords. This change avoids using them there. --- spec.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec.bs b/spec.bs index 876b22e..ad3954a 100644 --- a/spec.bs +++ b/spec.bs @@ -656,7 +656,7 @@ A [=constructor string parser=] has an associated The username and password components are always wildcard unless they are explicitly specified. -

If a hostname is specified and the port is not, the port is assumed to be the default port. If any port should match, authors can write `:*` explicitly. For example, "`https://*`" is any HTTPS origin on port 443, and "`https://*:*`" is any HTTPS origin on any port. +

If a hostname is specified and the port is not, the port is assumed to be the default port. If authors want to match any port, they have to write `:*` explicitly. For example, "`https://*`" is any HTTPS origin on port 443, and "`https://*:*`" is any HTTPS origin on any port.

@@ -774,7 +774,7 @@ To parse a constructor string given a string |input|: 1. Increment |parser|'s [=constructor string parser/token index=] by |parser|'s [=constructor string parser/token increment=]. 1. If |parser|'s [=constructor string parser/result=] [=map/contains=] "{{URLPatternInit/hostname}}" and not "{{URLPatternInit/port}}", then set |parser|'s [=constructor string parser/result=]["{{URLPatternInit/port}}"] to the empty string. -
This is special-cased because when an author does not specify a port, they usually intend the default port. If any port is acceptable, the author can specify it as a wildcard explicitly. For example, "`https://example.com/*`" should not match URLs beginning with "`https://example.com:8443/`", which is a different origin.
+
This is special-cased because when an author does not specify a port, they usually intend the default port. If any port is acceptable, the author can specify it as a wildcard explicitly. For example, "`https://example.com/*`" does not match URLs beginning with "`https://example.com:8443/`", which is a different origin.
1. Return |parser|'s [=constructor string parser/result=].
@@ -2027,7 +2027,7 @@ If a specification has an Infra value (e.g., after using [=parse a JSON string t 1. If |rawPattern| is a [=string=], then: 1. Return the result of [=creating=] a URL pattern given |rawPattern|, |serializedBaseURL|, and an empty [=map=]. -
It may become necessary in the future to plumb non-empty options here.
+
It might become necessary in the future to plumb non-empty options here.
1. Otherwise, if |rawPattern| is a [=map=], then: 1. Let |init| be «[ "{{URLPatternInit/baseURL}}" → |serializedBaseURL| ]», representing a dictionary of type {{URLPatternInit}}. @@ -2039,7 +2039,7 @@ If a specification has an Infra value (e.g., after using [=parse a JSON string t 1. Set |init|[|key|] to |value|. 1. Return the result of [=creating=] a URL pattern given |init|, null, and an empty [=map=]. -
It may become necessary in the future to plumb non-empty options here.
+
It might become necessary in the future to plumb non-empty options here.
1. Otherwise, return null.