Skip to content

Commit 0dcb53a

Browse files
committed
Correctly consume to exit state
1 parent 42da864 commit 0dcb53a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/jsoup/parser/TokeniserState.java

+1
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ void read(Tokeniser t, CharacterReader r) {
911911
// todo: replace nullChar with replaceChar
912912
char next = r.current();
913913
if (next == '>' || next == eof) {
914+
r.consume();
914915
t.emitCommentPending();
915916
t.transition(Data);
916917
}

0 commit comments

Comments
 (0)