Struct html5ever::rcdom::RcDom [] [src]

pub struct RcDom {
    pub document: Handle,
    pub errors: Vec<Cow<'static, str>>,
    pub quirks_mode: QuirksMode,
}

The DOM itself; the result of parsing.

Fields

document

The Document itself.

errors

Errors that occurred during parsing.

quirks_mode

The document's quirks mode.

Trait Implementations

impl TreeSink for RcDom

type Handle = Handle

fn parse_error(&mut self, msg: Cow<'static, str>)

fn get_document(&mut self) -> Handle

fn set_quirks_mode(&mut self, mode: QuirksMode)

fn same_node(&self, x: Handle, y: Handle) -> bool

fn elem_name(&self, target: Handle) -> QualName

fn create_element(&mut self, name: QualName, attrs: Vec<Attribute>) -> Handle

fn create_comment(&mut self, text: StrTendril) -> Handle

fn append(&mut self, parent: Handle, child: NodeOrText<Handle>)

fn append_before_sibling(&mut self, sibling: Handle, child: NodeOrText<Handle>) -> Result<(), NodeOrText<Handle>>

fn append_doctype_to_document(&mut self, name: StrTendril, public_id: StrTendril, system_id: StrTendril)

fn add_attrs_if_missing(&mut self, target: Handle, attrs: Vec<Attribute>)

fn remove_from_parent(&mut self, target: Handle)

fn reparent_children(&mut self, node: Handle, new_parent: Handle)

fn mark_script_already_started(&mut self, node: Handle)

fn complete_script(&mut self, _node: Self::Handle) -> NextParserState

impl Default for RcDom

fn default() -> RcDom

impl ParseResult for RcDom

type Sink = RcDom

fn get_result(sink: RcDom) -> RcDom