"changing-name-two");
  assert_false("changing-name-one" in window);
  assert_equals(window["changing-name-two"], img);

}, "Changing an attribute must update the named properties (name)");

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

  img.setAttribute("id", "other");
  assert_equals(window["still-match"], img);
}, "Changing an att