LibWeb: Return a NodeList from document.getElementsByName()

This aligns our implementation with the specification.
This commit is contained in:
Tim Ledbetter 2024-07-22 21:44:05 +01:00 committed by Andreas Kling
commit bd1213d0c5
Notes: github-actions[bot] 2024-07-23 06:59:11 +00:00
3 changed files with 8 additions and 5 deletions

View file

@ -248,7 +248,7 @@ public:
void schedule_style_update();
void schedule_layout_update();
JS::NonnullGCPtr<HTMLCollection> get_elements_by_name(FlyString const&);
JS::NonnullGCPtr<NodeList> get_elements_by_name(FlyString const&);
JS::NonnullGCPtr<HTMLCollection> applets();
JS::NonnullGCPtr<HTMLCollection> anchors();