Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

When extracting an origin from \<a> and \<area> elements without an
href attribute, we're currently returning an opaque Origin. We
should throw instead, as there's not an origin to extract from these
elements (see 1). Thanks to @annevk for pointing this out in 2.

Bug: 434131026
Change-Id: I136cc0ff24355e29418e060ab384938f3615a60e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7231346
Commit-Queue: Mike West <[email protected]>
Reviewed-by: Antonio Sartori <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1554582}

When extracting an origin from `<a>` and `<area>` elements without an
`href` attribute, we're currently returning an opaque `Origin`. We
should throw instead, as there's not an origin to extract from these
elements (see [1]). Thanks to @annevk for pointing this out in [2].

[1]: https://html.spec.whatwg.org/multipage/links.html#api-for-a-and-area-elements:extract-an-origin
[2]: whatwg/url#892 (comment)

Bug: 434131026
Change-Id: I136cc0ff24355e29418e060ab384938f3615a60e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7231346
Commit-Queue: Mike West <[email protected]>
Reviewed-by: Antonio Sartori <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1554582}
@chromium-wpt-export-bot chromium-wpt-export-bot marked this pull request as ready for review December 5, 2025 12:38
@wpt-pr-bot wpt-pr-bot added the html label Dec 5, 2025
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 97bfa00 into master Dec 5, 2025
23 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-8228b77742 branch December 5, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants