mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-13 13:51:51 +00:00
LibWeb: Preserve indeterminate
value when cloning HTMLInputElement
This commit is contained in:
parent
b9ba1b3f72
commit
c87bc78d5d
Notes:
github-actions[bot]
2025-01-11 10:25:32 +00:00
Author: https://github.com/tcl3
Commit: c87bc78d5d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3154
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue