Struct html5tokenizer::DefaultEmitter [−][src]
pub struct DefaultEmitter<R, S> { /* fields omitted */ }
Expand description
The default implementation of crate::Emitter
, used to produce (“emit”) tokens.
Trait Implementations
The token type emitted by this emitter. This controls what type of values the crate::Tokenizer
yields when used as an iterator. Read more
Set the name of the last start tag. Read more
The state machine has reached the end of the file. It will soon call pop_token
for the
last time. Read more
A (probably recoverable) parsing error has occured.
After every state change, the tokenizer calls this method to retrieve a new token that can be returned via the tokenizer’s iterator interface. Read more
Emit a bunch of plain characters as character tokens.
Set the current token to a start tag.
Set the current token to an end tag.
Set the current token to a comment.
Emit the current token, assuming it is a tag. Read more
Emit the current token, assuming it is a comment. Read more
Emit the current token, assuming it is a doctype. Read more
Assuming the current token is a start tag, set the self-closing flag. Read more
Assuming the current token is a doctype, set its “force quirks” flag to true. Read more
Assuming the current token is a start/end tag, append a string to the current tag’s name. Read more
Assuming the current token is a comment, append a string to the comment’s contents. Read more
Assuming the current token is a doctype, append a string to the doctype’s name. Read more
Set the current token to a new doctype token: Read more
Set the current attribute to a new one, starting with empty name and value strings. Read more
Called before the first push_attribute_value call.
If the value is wrappend in double or single quotes quoted
is set to true, otherwise false. Read more
Append a string to the current attribute’s name. Read more
Append a string to the current attribute’s value. Read more
Assuming the current token is a doctype, set its “public identifier” to the given string. Read more
Assuming the current token is a doctype, set its “system identifier” to the given string. Read more
Assuming the current token is a doctype, append a string to its “public identifier” to the given string. Read more
Assuming the current token is a doctype, append a string to its “system identifier” to the given string. Read more
Return true if all of these hold. Return false otherwise. Read more