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> {
667
667
668
668
debug ! ( "processing in state {:?}" , self . state) ;
669
669
match self . state . get ( ) {
670
- XmlState :: Quiescent => {
671
- self . state . set ( XmlState :: Data ) ;
672
- ProcessResult :: Done
673
- } ,
674
670
//§ data-state
675
671
XmlState :: Data => loop {
676
672
match pop_except_from ! ( self , input, small_char_set!( '\r' '&' '<' ) ) {
@@ -1163,7 +1159,7 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
1163
1159
fn eof_step ( & self ) -> ProcessResult < Sink :: Handle > {
1164
1160
debug ! ( "processing EOF in state {:?}" , self . state. get( ) ) ;
1165
1161
match self . state . get ( ) {
1166
- XmlState :: Data | XmlState :: Quiescent => go ! ( self : eof) ,
1162
+ XmlState :: Data => go ! ( self : eof) ,
1167
1163
XmlState :: CommentStart | XmlState :: CommentLessThan | XmlState :: CommentLessThanBang => {
1168
1164
go ! ( self : reconsume Comment )
1169
1165
} ,
Original file line number Diff line number Diff line change @@ -153,10 +153,6 @@ pub enum XmlState {
153
153
/// Indicates that the parser is currently parsing an ill-formed comment, such as
154
154
/// `<? this is not what a comment should look like! >`.
155
155
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 ,
160
156
}
161
157
162
158
/// Specifies how an attribute value is quoted, if at all.
You can’t perform that action at this time.
0 commit comments