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

@shannonbooth 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="URL/extract an origin">
+<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]]

Nothing comprehensive so far unfortunately sorry! Only have so far the URL & hyperlink element case from hacking around my implementation locally. I haven't built up anything more comprehensive for the other cases like for WindowOrWorkerGlobal scope which seem like would be a bit different in that the ESO returns the same origin origin instance (besides from data URL workers, which create a new opaque one when requested).

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

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

Received on Tuesday, 9 December 2025 20:15:45 UTC