summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2021-04-06 18:38:10 +0100
committerAndreas Kling <kling@serenityos.org>2021-04-06 21:42:00 +0200
commitca71ac484b1f03e2965b759ccd04d1cb273c9d62 (patch)
tree01b9575ebf35e10e29630134e9a88fb9e26e8f0a /Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
parentf482628fe549bc456fa3937abed5bcebe3ccd1bc (diff)
downloadserenity-ca71ac484b1f03e2965b759ccd04d1cb273c9d62.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
index 5d36bf51ee..81e4beb453 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
@@ -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() });