diff --git a/spec.bs b/spec.bs index 876b22e..10a5af3 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 any port will match, authors can 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.