Struct markup5ever::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

[src]

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

[src]

Signal a parse error.

[src]

Get a handle to the Document node.

[src]

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

[src]

Set the document's quirks mode.

[src]

Do two handles refer to the same node?

[src]

What is the name of this element? Read more

[src]

Create an element. Read more

[src]

Create a comment node.

[src]

Create a Processing Instruction node.

[src]

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

[src]

Append a node as the sibling immediately before the given node. Read more

[src]

When the insertion point is decided by the existence of a parent node of the element, we consider both possibilities and send the element which will be used if a parent node exists, along with the element to be used if there isn't one. Read more

[src]

Append a DOCTYPE element to the Document node.

[src]

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

[src]

Detach the given node from its parent.

[src]

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

[src]

Returns true if the adjusted current node is an HTML integration point and the token is a start tag. Read more

[src]

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

[src]

Indicate that a node was popped off the stack of open elements.

[src]

Associate the given form-associatable element with the form element

[src]

Called whenever the line number changes.

[src]

Indicate that a script element is complete.

impl Default for RcDom
[src]

[src]

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