Skip to content

armgit / moli

Public Imported from GitHub
0

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

797 B
Raw Blame
<!DOCTYPE html>
<link rel=author href="mailto:[email protected]">
<link rel=help href="https://github.com/openui/open-ui/issues/664">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<select id=select>
  <option id=optone>innertext one</option>
  <option id=opttwo value=valueattribute>innertext two</option>
</select>

<style>
  select, ::picker(select) {
    appearance: base-select;
  }
</style>

<script>
test(() => {
  assert_equals(select.value, 'innertext one',
    'The first option should be selected initially.');
  select.value = 'valueattribute';
  assert_equals(select.value, 'valueattribute',
    'Assigning value should look at the options value, not innertext');
}, 'select.value should reflect option.value');
</script>