mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
WebContent: Add more IPC endpoints for getting Elements
This patch adds `get_document_element()` and `query_selector_all()` which return Node's IDs. `get_document_element` returns the ID of the document element `query_selector_all` returns the IDs of all elements matching the selector starting at the Node associated with the start_node_id
This commit is contained in:
parent
d3353ee0e7
commit
281991057c
3 changed files with 41 additions and 0 deletions
|
@ -79,6 +79,9 @@ private:
|
|||
virtual void run_javascript(String const&) override;
|
||||
virtual void js_console_request_messages(i32) override;
|
||||
|
||||
virtual Messages::WebContentServer::GetDocumentElementResponse get_document_element() override;
|
||||
virtual Messages::WebContentServer::QuerySelectorAllResponse query_selector_all(i32 start_node_id, String const& selector) override;
|
||||
|
||||
virtual Messages::WebContentServer::GetLocalStorageEntriesResponse get_local_storage_entries() override;
|
||||
virtual Messages::WebContentServer::GetSessionStorageEntriesResponse get_session_storage_entries() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue