diff --git a/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp b/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp
index da67dd22f97..8728e9503fb 100644
--- a/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp
+++ b/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp
@@ -50,7 +50,7 @@ void HTMLCollection::visit_edges(Cell::Visitor& visitor)
visitor.visit(element);
}
-JS::MarkedVector HTMLCollection::collect_matching_elements() const
+JS::MarkedVector> HTMLCollection::collect_matching_elements() const
{
if (m_cached_dom_tree_version != root()->document().dom_tree_version()) {
m_cached_elements.clear();
@@ -70,7 +70,7 @@ JS::MarkedVector HTMLCollection::collect_matching_elements() const
m_cached_dom_tree_version = root()->document().dom_tree_version();
}
- JS::MarkedVector elements(heap());
+ JS::MarkedVector> elements(heap());
for (auto& element : m_cached_elements)
elements.append(element);
return elements;
diff --git a/Userland/Libraries/LibWeb/DOM/HTMLCollection.h b/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
index 40a89fdc3ee..ad590cde4ae 100644
--- a/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
+++ b/Userland/Libraries/LibWeb/DOM/HTMLCollection.h
@@ -38,7 +38,7 @@ public:
Element* item(size_t index) const;
Element* named_item(FlyString const& name) const;
- JS::MarkedVector collect_matching_elements() const;
+ JS::MarkedVector> collect_matching_elements() const;
virtual WebIDL::ExceptionOr item_value(size_t index) const override;
virtual WebIDL::ExceptionOr named_item_value(FlyString const& name) const override;