Skip to content

Commit 8c718d3

Browse files
Only reconsume from ampersand state if not in attr
1 parent b07aacc commit 8c718d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nu/validator/htmlparser/impl/Tokenizer.java

+3
Original file line numberDiff line numberDiff line change
@@ -3659,6 +3659,9 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
36593659
c = checkChar(buf, pos);
36603660
continue;
36613661
}
3662+
if ((returnState & DATA_AND_RCDATA_MASK) == 0) {
3663+
reconsume = true;
3664+
}
36623665
state = transition(state, returnState, reconsume, pos);
36633666
continue stateloop;
36643667
}

0 commit comments

Comments
 (0)