Skip to content

Truly independent web browser

LibWeb: Hold the nodes HTMLSlotElement.assign() collects conservatively

Shannon Boothcd64ef9251b6
diff --git a/Libraries/LibWeb/HTML/HTMLSlotElement.cpp b/Libraries/LibWeb/HTML/HTMLSlotElement.cpp
index 52b983e0a9b..84125bda743 100644
--- a/Libraries/LibWeb/HTML/HTMLSlotElement.cpp
+++ b/Libraries/LibWeb/HTML/HTMLSlotElement.cpp
@@ -122,7 +122,7 @@ void HTMLSlotElement::assign(GC::ConservativeVector<SlottableHandle> nodes)
}
// 2. Let nodesSet be a new ordered set.
- Vector<DOM::Slottable> nodes_set;
+ GC::ConservativeVector<DOM::Slottable> nodes_set;
// 3. For each node of nodes:
for (auto& node_handle : nodes) {