diff --git a/html/browsers/origin/api/origin-from-htmlhyperlinkelementutils.window.js b/html/browsers/origin/api/origin-from-htmlhyperlinkelementutils.window.js
index 78f856f38deff3..3bb317a2cb482b 100644
--- a/html/browsers/origin/api/origin-from-htmlhyperlinkelementutils.window.js
+++ b/html/browsers/origin/api/origin-from-htmlhyperlinkelementutils.window.js
@@ -1,6 +1,16 @@
// META: title=`Origin.from(HTMLHyperlinkElementUtils)`
// META: script=resources/serializations.js
+test(t => {
+ const invalid = document.createElement("a");
+ assert_throws_js(TypeError, _ => Origin.from(invalid));
+}, `Origin.from() throws.`);
+
+test(t => {
+ const invalid = document.createElement("area");
+ assert_throws_js(TypeError, _ => Origin.from(invalid));
+}, `Origin.from() throws.`);
+
for (const opaque of urls.opaque) {
//
test(t => {