Type Alias Document

Source
pub type Document = RcDom;
Expand description

An HTML5 document.

Aliased Type§

pub struct Document {
    pub document: Rc<Node>,
    pub errors: Vec<Cow<'static, str>>,
    pub quirks_mode: QuirksMode,
}

Fields§

§document: Rc<Node>

The Document itself.

§errors: Vec<Cow<'static, str>>

Errors that occurred during parsing.

§quirks_mode: QuirksMode

The document’s quirks mode.

Trait Implementations§

Source§

impl DocumentExt for Document

Source§

fn into_html(self) -> String

Converts the given node to an HTML string.