Expand description
The script crate contains all matters DOM.
ModulesΒ§
- conversions π
- css π
- dom π
- The implementation of the DOM.
- drag π
- engine π
- event_
loop π - fetch π
- layout_
dom - A safe wrapper for DOM nodes that prevents layout from mutating the DOM, from letting DOM nodes escape, and from generally doing anything that it isnβt supposed to. This is accomplished via a simple whitelist of allowed operations, along with some lifetime magic to prevent nodes from escaping.
- messaging π
- mime π
- modules π
- navigation π
- The listener that encapsulates all state for an in-progress document request. Any redirects that are encountered are followed. Whenever a non-redirect response is received, it is forwarded to the appropriate script thread.
- realms π
- routed_
promise π - runtime π
- tasks π
- test
- unminify π
- url π
- window_
named_ πproperties - xpath π
- Bindings to the
xpathcrate
MacrosΒ§
- make_
atomic_ setter - make_
bool_ getter - make_
bool_ setter - make_
clamped_ uint_ setter - make_
dimension_ setter - make_
dimension_ uint_ getter - make_
dimension_ uint_ setter - make_
form_ action_ getter - make_
getter - make_
int_ getter - make_
int_ setter - make_
labels_ getter - make_
legacy_ color_ setter - make_
limited_ int_ setter - make_
limited_ uint_ setter - make_
nonzero_ dimension_ setter - make_
setter - make_
uint_ getter - make_
uint_ setter - make_
url_ getter - make_
url_ setter - maplike
- Usage:
- native_
fn - Defines a macro
native_fn!to create a JavaScript function from a Rust function pointer. - native_
raw_ obj_ fn - Defines a macro
native_raw_obj_fn!to create a raw JavaScript function object. - setlike
- Usage:
StructsΒ§
- JSEngine
Setup - Script
Thread - Service
Worker Manager - A structure managing all registrations and workers for a given origin.