1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

LibWeb: Expose ParentNode.{first,last}ElementChild

I needed these to write the event dispatcher test.
This commit is contained in:
Luke 2020-11-21 18:49:09 +00:00 committed by Andreas Kling
parent e8b3a65581
commit c5e15d9282
6 changed files with 41 additions and 1 deletions

View file

@ -38,6 +38,9 @@ public:
template<typename F>
void for_each_child(F);
RefPtr<Element> first_element_child();
RefPtr<Element> last_element_child();
RefPtr<Element> query_selector(const StringView&);
NonnullRefPtrVector<Element> query_selector_all(const StringView&);