mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 10:41:30 +00:00
LibWebView+WebContent: Add WebContent IPC to create children DOM nodes
This adds IPC to create append a child <div> element or a text node to a DOM node.
This commit is contained in:
parent
bb217fb0d7
commit
111e53a2f6
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/trflynn89
Commit: 111e53a2f6
Pull-request: https://github.com/SerenityOS/serenity/pull/22198
Reviewed-by: https://github.com/awesomekling
5 changed files with 41 additions and 0 deletions
|
@ -50,6 +50,8 @@ endpoint WebContentServer
|
|||
set_dom_node_tag(i32 node_id, String name) => (Optional<i32> node_id)
|
||||
add_dom_node_attributes(i32 node_id, Vector<WebView::Attribute> attributes) =|
|
||||
replace_dom_node_attribute(i32 node_id, String name, Vector<WebView::Attribute> replacement_attributes) =|
|
||||
create_child_element(i32 node_id) => (Optional<i32> node_id)
|
||||
create_child_text_node(i32 node_id) => (Optional<i32> node_id)
|
||||
remove_dom_node(i32 node_id) =|
|
||||
get_dom_node_html(i32 node_id) => (Optional<String> html)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue