mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibWeb: Implement Node.cloneNode()
With this we can now successfully run a Vue.js 2 hello world! :^)
This commit is contained in:
parent
d721c93beb
commit
5da4c9bf1e
4 changed files with 71 additions and 1 deletions
|
@ -102,6 +102,9 @@ public:
|
|||
void remove_all_children(bool suppress_observers = false);
|
||||
u16 compare_document_position(RefPtr<Node> other);
|
||||
|
||||
NonnullRefPtr<Node> clone_node(Document* document = nullptr, bool clone_children = false) const;
|
||||
ExceptionOr<NonnullRefPtr<Node>> clone_node_binding(bool deep) const;
|
||||
|
||||
// NOTE: This is intended for the JS bindings.
|
||||
bool has_child_nodes() const { return has_children(); }
|
||||
NonnullRefPtrVector<Node> child_nodes() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue