Skip to content

Commit

Permalink
Define upper limit of a URL-port string
Browse files Browse the repository at this point in the history
Spotted in #502.
  • Loading branch information
annevk committed May 18, 2020
1 parent cb9c97f commit c1c2133
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1415,8 +1415,13 @@ switching on <a>base URL</a>'s <a for=url>scheme</a>:
<a>valid host string</a>, optionally followed by U+003A (:) and a <a>URL-port string</a>, optionally
followed by a <a>path-absolute-URL string</a>.

<p>A <dfn export oldids=syntax-url-port>URL-port string</dfn> must be zero or more
<a>ASCII digits</a>.
<p>A <dfn export oldids=syntax-url-port>URL-port string</dfn> must be one of the following:

<ul class=brief>
<li><p>the empty string
<li><p>one or more <a>ASCII digits</a> representing a decimal number no greater than
2<sup>16</sup>&nbsp;&minus;&nbsp;1.
</ul>

<p>A <dfn export oldids=syntax-url-scheme-relative>scheme-relative-URL string</dfn> must be
"<code>//</code>", followed by an <a>opaque-host-and-port string</a>, optionally followed by a
Expand Down

0 comments on commit c1c2133

Please sign in to comment.