mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibWeb: Rename "for_each_in_subtree(_of_type)" to "for_each_in_inclusive_subtree(_of_type)"
This is because it includes the initial node that the function was called on, which makes it "inclusive" as according to the spec. This is important as there are non-inclusive variants, particularly used in the node mutation algorithms.
This commit is contained in:
parent
f482628fe5
commit
ca71ac484b
Notes:
sideshowbarker
2024-07-18 20:42:57 +09:00
Author: https://github.com/Lubrsi
Commit: ca71ac484b
Pull-request: https://github.com/SerenityOS/serenity/pull/6158
12 changed files with 29 additions and 29 deletions
|
@ -117,7 +117,7 @@ void HTMLFormElement::submit_form(RefPtr<HTMLElement> submitter, bool from_submi
|
|||
|
||||
Vector<URLQueryParam> parameters;
|
||||
|
||||
for_each_in_subtree_of_type<HTMLInputElement>([&](auto& node) {
|
||||
for_each_in_inclusive_subtree_of_type<HTMLInputElement>([&](auto& node) {
|
||||
auto& input = downcast<HTMLInputElement>(node);
|
||||
if (!input.name().is_null() && (input.type() != "submit" || &input == submitter))
|
||||
parameters.append({ input.name(), input.value() });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue