mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Preserve indeterminate value when cloning HTMLInputElement
This commit is contained in:
parent
b9ba1b3f72
commit
c87bc78d5d
|
|
@ -1721,6 +1721,10 @@ WebIDL::ExceptionOr<void> HTMLInputElement::cloned(DOM::Node& copy, bool subtree
|
|||
input_clone.m_dirty_value = m_dirty_value;
|
||||
input_clone.m_checked = m_checked;
|
||||
input_clone.m_dirty_checkedness = m_dirty_checkedness;
|
||||
|
||||
// AD-HOC: The spec doesn't mention propagating this state, but there is a WPT test that expects cloned nodes to preserve it.
|
||||
input_clone.m_indeterminate = m_indeterminate;
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user