[−][src]Trait html5ever::tokenizer::TokenSink
Types which can receive tokens from the tokenizer.
Associated Types
type Handle
Required methods
fn process_token(
&mut self,
token: Token,
line_number: u64
) -> TokenSinkResult<Self::Handle>
&mut self,
token: Token,
line_number: u64
) -> TokenSinkResult<Self::Handle>
Process a token.
Provided methods
fn end(&mut self)
fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool
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
Implementors
impl<Handle, Sink> TokenSink for TreeBuilder<Handle, Sink> where
Handle: Clone,
Sink: TreeSink<Handle = Handle>,
[src]
Handle: Clone,
Sink: TreeSink<Handle = Handle>,
type Handle = Handle
fn process_token(
&mut self,
token: Token,
line_number: u64
) -> TokenSinkResult<Handle>
[src]
&mut self,
token: Token,
line_number: u64
) -> TokenSinkResult<Handle>