- From: Rimas Misevičius <notifications@github.com>
- Date: Sat, 18 Oct 2025 10:15:54 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/url/pull/887@github.com>
As of April 1, 2025, the Public Suffix List algorithm was modified so that the trailing dot of a domain would be retained in the result. Quotes from [this algorithm](https://github.com/publicsuffix/list/wiki/Format#formal-algorithm): > * The public suffix is the set of labels from the domain which match the labels of the prevailing rule, using the matching algorithm above. A trailing dot shall be added if the domain included one. (See Note 3) > **Note 3** > Callers of the algorithm often cannot determine if the domain to be queried is an FQDN but may treat `example.com` and `example.com.` as distinct. To support this, the algorithm should retain that distinction. This means looking up `example.com` should yield `com` while looking up `example.com.` should yield `com.` as the public suffix. Therefore, there is no need to add a trailing dot to the result if the input domain has one, as this is done by the PSL algorithm. <hr> <!-- Thank you for contributing to the URL Standard! Please describe the change you are making and complete the checklist below if your change is not editorial. When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run. If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging. --> - [ ] At least two implementers are interested (and none opposed): * … * … - [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at: * -- <!-- If these tests are tentative, link a PR to make them non-tentative. --> - [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed: * Chromium: … * Gecko: … * WebKit: … * Deno: … * Node.js: … - [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: … - [ ] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. --> (See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.) <!-- This comment and the below content is programmatically generated. You may add a comma-separated list of anchors you'd like a direct link to below (e.g. #idl-serializers, #idl-sequence): Don't remove this comment or modify anything below this line. If you don't want a preview generated for this pull request, just replace the whole of this comment's content by "no preview" and remove what's below. --> *** <a href="https://whatpr.org/url/887.html" title="Last updated on Oct 18, 2025, 5:15 PM UTC (a0ed021)">Preview</a> | <a href="https://whatpr.org/url/887/05a5d83...a0ed021.html" title="Last updated on Oct 18, 2025, 5:15 PM UTC (a0ed021)">Diff</a> You can view, comment on, or merge this pull request online at: https://github.com/whatwg/url/pull/887 -- Commit Summary -- * Simplify the public suffix and registrable domain definitions -- File Changes -- M url.bs (20) -- Patch Links -- https://github.com/whatwg/url/pull/887.patch https://github.com/whatwg/url/pull/887.diff -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/pull/887 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/url/pull/887@github.com>
Received on Saturday, 18 October 2025 17:15:58 UTC