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

mikewest left a comment (whatwg/url#892)

> > It seems like we don't have tests for `<a>` and `<area>` without `href` attributes. From a quick skim I suspect this might not be implemented correctly.
> 
> I can add those, thanks for the suggestion!

You were right; Chromium's implementation was returning an opaque origin rather than throwing on `Origin.from(<a>)`. Fixing that and updating the tests in https://chromium-review.googlesource.com/c/chromium/src/+/7231346.

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

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

Received on Friday, 5 December 2025 06:53:52 UTC