ribute must not remove the named properties if a different attribute still matches (id)");

test(() => {
  const img = document.createElement("img");
  document.body.appendChild(img);
  img.setAttribute("name", "still-match-name");
  img.setAttribute("id", "still-match-name");
  assert_equals(window["still-match-name"], img);

  img.setAttribute("name", "other");
  assert_equals(window["still-match-name"], img);
}, "Changing an attribute must not remove the named properties if a different attribute still ma