We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d2492 commit 2447729Copy full SHA for 2447729
src/nu/validator/htmlparser/impl/Tokenizer.java
@@ -3546,10 +3546,9 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
3546
} else if ((c >= '0' && c <= '9')
3547
|| (c >= 'A' && c <= 'Z')
3548
|| (c >= 'a' && c <= 'z')) {
3549
- if (returnState == ATTRIBUTE_VALUE_DOUBLE_QUOTED
3550
- || returnState == ATTRIBUTE_VALUE_SINGLE_QUOTED
3551
- || returnState == ATTRIBUTE_VALUE_UNQUOTED) {
3552
- appendStrBuf(c);
+ emitOrAppendCharRefBuf(returnState);
+ if ((returnState & DATA_AND_RCDATA_MASK) == 0) {
+ cstart = pos;
3553
}
3554
/* The following pos++ is necessary due to how we’ve
3555
* handled the "reconsume" block for this case. */
0 commit comments