Crate rdom[][src]

A Rust-based simulated DOM (browser-independent replacement for web_sys)

Modules

behavior

Provides support for behaviors as defined in the DOM standards. Because the standards refer extensively to classes and mixins, and because Rust does not support either one, this module provides several structures that provide the same behavior but in a Rust- friendly way (using composition instead of inheritance).

config

Configuration for a sandbox. A sandbox represents a virtual browser tab, so in order to allow some values (e.g. window.innerWidth), we need a configuration for the tab, which is what the structures in this module represent.

error

Errors that may occur while using rdom.

named_node_map

Representation of a NamedNodeMap and associated metadata.

node

This module contains various representations of Nodes and Elements. There are two variants:

node_list

Representation of a NodeList and associated metadata.

sandbox

A sandbox represents a virtual browser tab. It contains a document and a window, as well as some configuration information for screen dimensions.

window

A virtual browser window.

Macros

node_base

Provides the trait implementations for all wrapped node types