mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
LibWeb: Add support for DOM's TreeWalker
This patch adds TreeWalker (created via Document.createTreeWalker()) which allows you to traverse a filtered view of the DOM in all directions.
This commit is contained in:
parent
fabcee016f
commit
acbdb95b0a
9 changed files with 487 additions and 0 deletions
|
@ -325,6 +325,7 @@ public:
|
|||
static ExceptionOr<PrefixAndTagName> validate_qualified_name(String const& qualified_name);
|
||||
|
||||
NonnullRefPtr<NodeIterator> create_node_iterator(Node& root, unsigned what_to_show, RefPtr<NodeFilter>);
|
||||
NonnullRefPtr<TreeWalker> create_tree_walker(Node& root, unsigned what_to_show, RefPtr<NodeFilter>);
|
||||
|
||||
private:
|
||||
explicit Document(const AK::URL&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue