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

The Document itself.

Errors that occurred during parsing.

The document's quirks mode.

Trait Implementations

impl TreeSink for RcDom
[src]

The overall result of parsing. Read more

Consume this sink and return the overall result of parsing. Read more

Handle is a reference to a DOM node. The tree builder requires that a Handle implements Clone to get another reference to the same node. Read more

Signal a parse error.

Get a handle to the Document node.

Get a handle to a template's template contents. The tree builder promises this will never be called with something else than a template element. Read more

Set the document's quirks mode.

Do two handles refer to the same node?

What is the name of this element? Read more

Create an element. Read more

Create a comment node.

Append a node as the last child of the given node. If this would produce adjacent sibling text nodes, it should concatenate the text instead. Read more

Append a node as the sibling immediately before the given node. If that node has no parent, do nothing and return Err(new_node). Read more

Append a DOCTYPE element to the Document node.

Add each attribute to the given element, if no attribute with that name already exists. The tree builder promises this will never be called with something else than an element. Read more

Detach the given node from its parent.

Remove all the children from node and append them to new_parent.

Mark a HTML <script> element as "already started".

Indicate that a <script> element is complete.

impl Default for RcDom
[src]

Returns the "default value" for a type. Read more