diff options
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 62cc6a4..78d4fc4 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -116,6 +116,31 @@ impl<R: Reader, E: Emitter<R>> Tokenizer<R, E> { } #[inline] + pub(crate) fn current_end_tag_is_appropriate(&mut self) -> bool { + self.emitter.current_is_appropriate_end_tag_token() + } + + #[inline] + pub(crate) fn init_start_tag(&mut self) { + self.emitter.init_start_tag(&self.reader); + } + + #[inline] + pub(crate) fn init_end_tag(&mut self) { + self.emitter.init_end_tag(&self.reader); + } + + #[inline] + pub(crate) fn push_tag_name(&mut self, s: &str) { + self.emitter.push_tag_name(s); + } + + #[inline] + pub(crate) fn emit_current_tag(&mut self) { + self.emitter.emit_current_tag(); + } + + #[inline] pub(crate) fn unread_char(&mut self, c: Option<char>) { self.to_reconsume.push(c); } |