mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement pick_option.
This commit is contained in:
parent
b1d6b0f797
commit
6e9e1465bf
2 changed files with 24 additions and 9 deletions
|
@ -141,6 +141,9 @@ impl HTMLOptionElementMethods for HTMLOptionElement {
|
|||
self.selectedness.set(selected);
|
||||
if let Some(select) = self.upcast::<Node>().ancestors()
|
||||
.filter_map(Root::downcast::<HTMLSelectElement>).next() {
|
||||
if selected {
|
||||
select.pick_option(self);
|
||||
}
|
||||
select.ask_for_reset();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue