mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibWeb: Implement the form associated element clear algorithm
This is a method defined in the WebDriver spec, but requires access to a bunch of private fields in these classes, so this is implemented in the same manner as the reset algorithm.
This commit is contained in:
committed by
Andreas Kling
parent
fadb14d31d
commit
516f5f7008
@@ -166,6 +166,14 @@ void FormAssociatedElement::reset_form_owner()
|
||||
}
|
||||
}
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-clear-algorithm
|
||||
void FormAssociatedElement::clear_algorithm()
|
||||
{
|
||||
// When the clear algorithm is invoked for an element that does not define its own clear algorithm, its reset
|
||||
// algorithm must be invoked instead.
|
||||
reset_algorithm();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-fs-formaction
|
||||
String FormAssociatedElement::form_action() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user