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 5dbe041 commit 3aa0900Copy full SHA for 3aa0900
src/nu/validator/htmlparser/impl/Tokenizer.java
@@ -3539,7 +3539,13 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
3539
} else if ((c >= '0' && c <= '9')
3540
|| (c >= 'A' && c <= 'Z')
3541
|| (c >= 'a' && c <= 'z')) {
3542
- appendStrBuf(c);
+ if (returnState == ATTRIBUTE_VALUE_DOUBLE_QUOTED
3543
+ || returnState == ATTRIBUTE_VALUE_SINGLE_QUOTED
3544
+ || returnState == ATTRIBUTE_VALUE_UNQUOTED) {
3545
+ appendStrBuf(c);
3546
+ }
3547
+ /* The following pos++ is necessary due to how we’ve
3548
+ * handled the "reconsume" block for this case. */
3549
pos++;
3550
continue;
3551
}
0 commit comments