mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibWeb/HTML: Implement HTMLOptionElement moving steps
This commit is contained in:
Notes:
github-actions[bot]
2026-04-22 13:06:58 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/f434ddc01f7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8946 Reviewed-by: https://github.com/gmta ✅
@@ -350,7 +350,15 @@ void HTMLOptionElement::removed_from(IsSubtreeRoot is_subtree_root, Node* old_an
|
||||
update_nearest_select_element();
|
||||
}
|
||||
|
||||
// FIXME: Moving steps. https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element:html-element-moving-steps
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element:html-element-moving-steps
|
||||
void HTMLOptionElement::moved_from(IsSubtreeRoot is_subtree_root, GC::Ptr<Node> old_ancestor)
|
||||
{
|
||||
Base::moved_from(is_subtree_root, old_ancestor);
|
||||
|
||||
// The option HTML element moving steps, given movedNode, isSubtreeRoot, and oldAncestor are to run update an
|
||||
// option's nearest ancestor select given movedNode.
|
||||
update_nearest_select_element();
|
||||
}
|
||||
|
||||
void HTMLOptionElement::children_changed(ChildrenChangedMetadata const& metadata)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user