mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
LibWebView+WebContent: Add APIs to manipulate DOM nodes
This adds APIs to allow Ispector clients to: * Change a DOM text or comment node's text data. * Add, replace, or remove a DOM element's attribute. * Change a DOM element's tag.
This commit is contained in:
parent
18a4455d43
commit
4cfeb41c4b
10 changed files with 138 additions and 0 deletions
|
@ -63,6 +63,10 @@ public:
|
|||
void clear_inspected_dom_node();
|
||||
i32 get_hovered_node_id();
|
||||
|
||||
void set_dom_node_text(i32 node_id, String text);
|
||||
Optional<i32> set_dom_node_tag(i32 node_id, String name);
|
||||
void replace_dom_node_attribute(i32 node_id, String name, Vector<Attribute> replacement_attributes);
|
||||
|
||||
void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {});
|
||||
|
||||
void run_javascript(StringView);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue