mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Use correct command in reorder_modifiable_descendants
Gains us 7 WPT passes in the imported test
This commit is contained in:
parent
1d3e539c09
commit
a13f6cdf86
Notes:
github-actions[bot]
2025-07-16 10:41:47 +00:00
Author: https://github.com/Calme1709
Commit: a13f6cdf86
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5469
Reviewed-by: https://github.com/gmta ✅
7 changed files with 18483 additions and 1 deletions
|
@ -3460,7 +3460,7 @@ void reorder_modifiable_descendants(GC::Ref<DOM::Node> node, FlyString const& co
|
|||
if (candidate == node
|
||||
|| !is_simple_modifiable_element(*candidate)
|
||||
|| specified_command_value(static_cast<DOM::Element&>(*candidate), command) != new_value
|
||||
|| !values_are_loosely_equivalent(CommandNames::createLink, effective_command_value(candidate, command), new_value))
|
||||
|| !values_are_loosely_equivalent(command, effective_command_value(candidate, command), new_value))
|
||||
return;
|
||||
|
||||
// 4. While candidate has children, insert the first child of candidate into candidate's parent immediately before
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue