1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use reader::lexer::Token; use super::{Result, PullParser, State}; impl PullParser { pub fn inside_doctype(&mut self, t: Token) -> Option<Result> { match t { Token::TagEnd => { self.lexer.enable_errors(); self.into_state_continue(State::OutsideTag) } _ => None } } }