tches (name)");

test(() => {
  const img = document.createElement("img");
  img.setAttribute("alt", "Cat pictures on the internet");
  img.setAttribute("id", "no-errors");
  document.body.appendChild(img);
  assert_equals(window["no-errors"], img);

  img.setAttribute("alt", "Dog pictures on the internet");
  assert_equals(window["no-errors"], img);
}, "Changing an attribute that is not id or name must not cause errors");
</script>
