LibWeb: Use correct command in reorder_modifiable_descendants

Gains us 7 WPT passes in the imported test
This commit is contained in:
Callum Law 2025-07-16 21:59:14 +12:00 committed by Jelle Raaijmakers
commit a13f6cdf86
Notes: github-actions[bot] 2025-07-16 10:41:47 +00:00
7 changed files with 18483 additions and 1 deletions

View file

@ -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