Skip to content

Commit b6b3251

Browse files
authored
Define the "extract an origin" operation
whatwg/html#11846 added an `Origin` interface, which relies on an "extract an origin" operation to support the creation of new `Origin` objects via `Origin.from(...)`. This PR defines that operation for `URL` objects. Addresses a remaining portion of whatwg/html#11534.
1 parent e69e0a8 commit b6b3251

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

url.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3494,6 +3494,11 @@ null-or-<a>scalar value string</a> <var>base</var> (default null), and then runs
34943494
</ol>
34953495
</div>
34963496

3497+
<div algorithm="URL/extract an origin">
3498+
<p>Objects implementing the {{URL}} interface's <a for="platform object">extract an origin</a> steps are
3499+
to return <a>this</a>'s <a for=URL>URL</a>'s <a for=url>origin</a>. [[!HTML]]
3500+
</div>
3501+
34973502
<hr>
34983503

34993504
<div algorithm>

0 commit comments

Comments
 (0)