File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -667,10 +667,6 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
667667
668668 debug ! ( "processing in state {:?}" , self . state) ;
669669 match self . state . get ( ) {
670- XmlState :: Quiescent => {
671- self . state . set ( XmlState :: Data ) ;
672- ProcessResult :: Done
673- } ,
674670 //§ data-state
675671 XmlState :: Data => loop {
676672 match pop_except_from ! ( self , input, small_char_set!( '\r' '&' '<' ) ) {
@@ -1163,7 +1159,7 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
11631159 fn eof_step ( & self ) -> ProcessResult < Sink :: Handle > {
11641160 debug ! ( "processing EOF in state {:?}" , self . state. get( ) ) ;
11651161 match self . state . get ( ) {
1166- XmlState :: Data | XmlState :: Quiescent => go ! ( self : eof) ,
1162+ XmlState :: Data => go ! ( self : eof) ,
11671163 XmlState :: CommentStart | XmlState :: CommentLessThan | XmlState :: CommentLessThanBang => {
11681164 go ! ( self : reconsume Comment )
11691165 } ,
Original file line number Diff line number Diff line change @@ -153,10 +153,6 @@ pub enum XmlState {
153153 /// Indicates that the parser is currently parsing an ill-formed comment, such as
154154 /// `<? this is not what a comment should look like! >`.
155155 BogusComment ,
156- /// Interrupts the tokenizer for one single call to `step`.
157- ///
158- /// It is unclear whether this is still necessary ([#649](https://github.com/servo/html5ever/issues/649)).
159- Quiescent ,
160156}
161157
162158/// Specifies how an attribute value is quoted, if at all.
You can’t perform that action at this time.
0 commit comments