Re: [whatwg/url] Define the "extract an origin" operation. (PR #892)

@mikewest commented on this pull request.



> @@ -3495,6 +3495,11 @@ null-or-<a>scalar value string</a> <var>base</var> (default null), and then runs
 </ol>
 </div>
 
+<div algorithm>
+<p>Objects implementing the {{URL}} interface's <a for="platform object">extract an origin</a> steps are
+to return <a>this</a>'s <a for=URL>URL</a>'s <a for=url>origin</a>. [[!HTML]]

This mirrors what we did in HTML (e.g. https://html.spec.whatwg.org/multipage/browsers.html#the-origin-interface:extract-an-origin and https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin:extract-an-origin). We could replace it with something like "the object's" throughout if that would be preferable?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/892#discussion_r2588177003
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/892/review/3538863303@github.com>

Received on Thursday, 4 December 2025 09:12:05 UTC