mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Make HTMLCollection and subclasses GC-allocated
This commit is contained in:
@@ -184,7 +184,7 @@ static bool is_form_control(DOM::Element const& element)
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#dom-form-elements
|
||||
NonnullRefPtr<DOM::HTMLCollection> HTMLFormElement::elements() const
|
||||
JS::NonnullGCPtr<DOM::HTMLCollection> HTMLFormElement::elements() const
|
||||
{
|
||||
// FIXME: This should return the same HTMLFormControlsCollection object every time,
|
||||
// but that would cause a reference cycle since HTMLCollection refs the root.
|
||||
|
||||
Reference in New Issue
Block a user