diff --git a/tests/wpt/tests/domxpath/fn-id.html b/tests/wpt/tests/domxpath/fn-id.html
index 304d38985a0..251de43024c 100644
--- a/tests/wpt/tests/domxpath/fn-id.html
+++ b/tests/wpt/tests/domxpath/fn-id.html
@@ -10,7 +10,6 @@ function testIdFunction(expression, xmlString, expectedIds) {
test(() => {
let result = doc.evaluate(expression, doc.documentElement, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
assert_equals(result.resultType, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE);
-
let actualIds = [];
for (let i = 0; i < result.snapshotLength; i++) {
actualIds.push(result.snapshotItem(i).getAttribute('id'));
@@ -45,4 +44,4 @@ testIdFunction('id("")', 'Empty ID
', []);
// Test whitespace in ID string
testIdFunction('id(" test1 ")', 'Match
', ['test1']);
-