1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! A small DOM (the `html` feature): what a browser, or jsdom in upstream's
//! unit tests, gives Lexical's `createDOM`, `exportDOM` and HTML import and
//! export. Nothing renders it; it exists so that HTML export and import run
//! the same node methods as JS and write the same bytes, as the Swift
//! port's `DOMDocument` does (`swift/DESIGN.md`, "The DOM is a small model of
//! jsdom's").
//!
//! - [`DomNode`]: `Node` and the interfaces Lexical reads through it
//! (`Element`, `Text`, `Comment`, `DocumentFragment`, `Document`).
//! - [`CssStyle`] and [`CssStyleDeclaration`]: an element's inline style,
//! which normalizes values as jsdom's declaration does (colors to
//! `rgb()`, `0` lengths to `0px`, lower-case keywords), pinned by the
//! `css/properties` and `css/values` vectors.
//! - [`parse_from_string`]: `DOMParser`, a WHATWG tokenizer and tree
//! builder pinned against jsdom's by the `html/parse` and `html/entities`
//! vectors.
//! - [`parse_style_sheet`]: a `<style>` element's rules, and
//! [`DomNode::query_selector_all`] for the selectors they use.
//! - [`get_document`]: the one `document` of the thread, as JS has one
//! global `document`.
pub use ;
pub use ;
pub use ;
pub use ;
pub use is_void_html_element;
pub use ;
pub use SelectorError;
thread_local!
/// The thread's `document`, which `$getDocument()` returns when no editor
/// root names another.