mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibWeb: Implement Node.getRootNode
This commit is contained in:
parent
1f4a6e7c22
commit
1ea3f34823
3 changed files with 21 additions and 0 deletions
|
@ -35,6 +35,10 @@ enum class NodeType : u16 {
|
|||
NOTATION_NODE = 12
|
||||
};
|
||||
|
||||
struct GetRootNodeOptions {
|
||||
bool composed { false };
|
||||
};
|
||||
|
||||
class Node
|
||||
: public TreeNode<Node>
|
||||
, public EventTarget
|
||||
|
@ -195,6 +199,8 @@ public:
|
|||
bool is_same_node(Node const*) const;
|
||||
bool is_equal_node(Node const*) const;
|
||||
|
||||
NonnullRefPtr<Node> get_root_node(GetRootNodeOptions const& options = {});
|
||||
|
||||
protected:
|
||||
Node(Document&, NodeType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue