This package is the core of the NetworkedDOM system. It provides classes that can execute HTML documents (including JavaScript) and emit messages that describe the changes to the DOM.
It is designed to be used in a message-passing system, where the messages are sent to a remote client that can apply the changes to a local DOM to keep it in sync with the remote DOM.
It is also capable of diffing the changes between the last state of a DOM and a current/new state of a DOM, and describing only necessary changes to make to reach the new state.
ObservableDOM
- A class that can execute HTML documents using a provided
DOMRunnerInterface
/DOMRunnerFactory
and emit messages that describe the changes to the DOM. - Can apply events to the DOM.
- A class that can execute HTML documents using a provided
JSDOMRunner
/JSDOMRunnerFactory
- A class that implements the
DOMRunnerInterface
/DOMRunnerFactory
and usesjsdom
to execute HTML documents.
- A class that implements the