mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibWeb/HTML: Remove microtask invocation of update selectedness
This is fundametally broken. A microtask only finishes after all javascript has finished running. The selectedness of a select element is observable by javascript, so any changes which are made as a result of children changing associated with a select element should be made through the children update steps and friends.
This commit is contained in:
committed by
Andrew Kaster
parent
b35979c3f7
commit
1db568d06f
@@ -505,11 +505,6 @@ void HTMLSelectElement::did_select_item(Optional<u32> const& id)
|
||||
void HTMLSelectElement::form_associated_element_was_inserted()
|
||||
{
|
||||
create_shadow_tree_if_needed();
|
||||
|
||||
// Wait until children are ready
|
||||
queue_an_element_task(HTML::Task::Source::Microtask, [this] {
|
||||
update_selectedness();
|
||||
});
|
||||
}
|
||||
|
||||
void HTMLSelectElement::form_associated_element_was_removed(DOM::Node*)
|
||||
|
||||
Reference in New Issue
Block a user