[−][src]Crate augdom
augdom
provides an "augmented DOM" implementation that can run almost anywhere Rust can. By
default the webdom
feature is enabled and this crate is a wrapper around web-sys
for
creating and manipulating HTML elements. See the crate::Dom trait for the provided behavior.
The rsdom
feature enables a DOM emulation layer written in pure Rust which can be
used for testing or to render HTML strings.
Known Limitations
As of today the <web_sys::Element as Dom>::*_attribute
methods will panic if called on a text
node. This cost seems appropriate today because this is a dependency for other crates which
enforce this requirement themselves. web_sys
enforces this restriction statically.
Re-exports
pub use web_sys as sys; |
Modules
event | Event types. |
webdom | An implementation of |
Enums
Node | A |
Traits
Dom | A value which implements a subset of the web's document object model. |
JsCast | A trait for checked and unchecked casting between JS types. |
Functions
document | Returns the current document. Panics if called outside a web document context. |
window | Returns the current window. Panics if no window is available. |