Module tree_builder

Source
Expand description

The HTML5 tree builder.

Re-exports§

pub use crate::interface::AppendNode;
pub use crate::interface::AppendText;
pub use crate::interface::LimitedQuirks;
pub use crate::interface::NoQuirks;
pub use crate::interface::Quirks;
pub use self::PushFlag::*;

Structs§

ActiveFormattingIter
Attribute
A tag attribute, e.g. class="test" in <div class="test" ...>.
ElementFlags
Special properties of an element, useful for tagging elements with this information.
TreeBuilder
The HTML tree builder.
TreeBuilderOpts
Tree builder options, with an impl for Default.

Enums§

NextParserState
Whether to interrupt further parsing of the current input until the next explicit resumption of the tokenizer, or continue without any interruption.
NodeOrText
Something which can be inserted into the DOM.
PushFlag
QuirksMode
A document’s quirks mode, for compatibility with old browsers. See quirks mode on wikipedia for more information.

Traits§

ElemName
An abstraction over any type that can represent an element’s local name and namespace.
Tracer
Trace hooks for a garbage-collected DOM.
TreeSink
Methods a parser can use to create the DOM. The DOM provider implements this trait.

Functions§

create_element
A constructor for an element.
html_elem