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="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]]

👍 I thought I'd added tests like that to https://wpt.fyi/results/html/browsers/origin/api/origin-comparison.any.html?label=master&label=experimental&aligned, but I didn't. If you have a PR, great! If not, I'll put one up this morning (as I need to fix the IDL test anyway).

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

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

Received on Tuesday, 9 December 2025 08:22:36 UTC