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

@annevk 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>

```suggestion
<div algorithm="URL/extract an origin">
```
(I think it just needs to be a unique value if there's no `dfn` element inside.

> @@ -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]]

I think it's a little weird that we use "this" here, but it's probably okay.

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

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

Received on Thursday, 4 December 2025 09:00:51 UTC