Test length of `selectedOptions` after change
diff --git a/html/semantics/forms/the-select-element/select-selectedOptions.html b/html/semantics/forms/the-select-element/select-selectedOptions.html
index f8e577a..6a5c75f 100644
--- a/html/semantics/forms/the-select-element/select-selectedOptions.html
+++ b/html/semantics/forms/the-select-element/select-selectedOptions.html
@@ -114,12 +114,15 @@
test(() => {
const select = document.getElementById("select-same-object-change");
const before = select.selectedOptions;
+ assert_equals(before.length, 3);
select.selectedOptions[1].selected = false;
const after = select.selectedOptions;
assert_equals(before, after);
+ assert_equals(before.length, 2);
+ assert_equals(after.length, 2);
}, ".selectedOptions should return the same object after selection changes - [SameObject]");
</script>