mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Expose ParentNode.{first,last}ElementChild
I needed these to write the event dispatcher test.
This commit is contained in:
parent
e8b3a65581
commit
c5e15d9282
Notes:
sideshowbarker
2024-07-19 01:18:42 +09:00
Author: https://github.com/Lubrsi
Commit: c5e15d9282
Pull-request: https://github.com/SerenityOS/serenity/pull/4131
Reviewed-by: https://github.com/awesomekling
6 changed files with 41 additions and 1 deletions
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue