Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

318 B
Raw Blame
test(() => {
  const select = document.createElement("select");
  select.innerHTML = "<optgroup><option>1</optgroup><optgroup><option>2";
  assert_equals(select.value, "1");
  select.querySelector("optgroup").remove();
  assert_equals(select.value, "2");
}, "<select> needs to be updated when <optgroup> is removed");