mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:57:45 +00:00
LibWeb: Add basic support for DOM's NodeIterator and NodeFilter
This patch adds NodeIterator (created via Document.createNodeIterator()) which allows you to iterate through all the nodes in a subtree while filtering with a provided NodeFilter callback along the way. This first cut implements the full API, but does not yet handle nodes being removed from the document while referenced by the iterator. That will be done in a subsequent patch.
This commit is contained in:
parent
ba87f23f22
commit
fabcee016f
12 changed files with 357 additions and 5 deletions
|
@ -110,6 +110,8 @@ class IDLEventListener;
|
|||
class LiveNodeList;
|
||||
class NamedNodeMap;
|
||||
class Node;
|
||||
class NodeFilter;
|
||||
class NodeIterator;
|
||||
class NodeList;
|
||||
class ParentNode;
|
||||
class Position;
|
||||
|
@ -469,6 +471,8 @@ class MessageEventWrapper;
|
|||
class MessagePortWrapper;
|
||||
class MouseEventWrapper;
|
||||
class NamedNodeMapWrapper;
|
||||
class NodeFilterWrapper;
|
||||
class NodeIteratorWrapper;
|
||||
class NodeListWrapper;
|
||||
class NodeWrapper;
|
||||
class PageTransitionEventWrapper;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue