diff --git a/testing/web-platform/tests/html/semantics/forms/the-optgroup-element/optgroup-removal.window.js b/testing/web-platform/tests/html/semantics/forms/the-optgroup-element/optgroup-removal.window.js
index 4e4c2df77e317..ea23e8d724ae4 100644
--- a/testing/web-platform/tests/html/semantics/forms/the-optgroup-element/optgroup-removal.window.js
+++ b/testing/web-platform/tests/html/semantics/forms/the-optgroup-element/optgroup-removal.window.js
@@ -1,6 +1,6 @@
test(() => {
const select = document.createElement("select");
- select.innerHTML = "