mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +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
|
@ -302,6 +302,8 @@
|
|||
#include <LibWeb/Bindings/TextMetricsConstructor.h>
|
||||
#include <LibWeb/Bindings/TextMetricsPrototype.h>
|
||||
#include <LibWeb/Bindings/TextPrototype.h>
|
||||
#include <LibWeb/Bindings/TreeWalkerConstructor.h>
|
||||
#include <LibWeb/Bindings/TreeWalkerPrototype.h>
|
||||
#include <LibWeb/Bindings/UIEventConstructor.h>
|
||||
#include <LibWeb/Bindings/UIEventPrototype.h>
|
||||
#include <LibWeb/Bindings/URLConstructor.h>
|
||||
|
@ -475,6 +477,7 @@
|
|||
ADD_WINDOW_OBJECT_INTERFACE(TextDecoder) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(TextEncoder) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(TextMetrics) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(TreeWalker) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(UIEvent) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(URLSearchParams) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(URL) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue