Struct html5ever::tree_builder::TreeBuilder [] [src]

pub struct TreeBuilder<Handle, Sink> { /* fields omitted */ }

The HTML tree builder.

Methods

impl<Handle, Sink> TreeBuilder<Handle, Sink> where Handle: Clone, Sink: TreeSink<Handle=Handle>
[src]

Create a new tree builder which sends tree modifications to a particular TreeSink.

The tree builder is also a TokenSink.

Create a new tree builder which sends tree modifications to a particular TreeSink. This is for parsing fragments.

The tree builder is also a TokenSink.

Call the Tracer's trace_handle method on every Handle in the tree builder's internal state. This is intended to support garbage-collected DOMs.

Are we parsing a HTML fragment?

Trait Implementations

impl<Handle, Sink> TokenSink for TreeBuilder<Handle, Sink> where Handle: Clone, Sink: TreeSink<Handle=Handle>
[src]

Process a token.

Used in the markup declaration open state. By default, this always returns false and thus all CDATA sections are tokenized as bogus comments. https://html.spec.whatwg.org/multipage/#markup-declaration-open-state Read more