File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/nu/validator/htmlparser/impl Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -2578,8 +2578,6 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
2578
2578
}
2579
2579
c = checkChar (buf , pos );
2580
2580
switch (c ) {
2581
- case '\u0000' :
2582
- break stateloop ;
2583
2581
case '-' :
2584
2582
clearStrBufAfterOneHyphen ();
2585
2583
state = transition (state , Tokenizer .COMMENT_START , reconsume , pos );
@@ -3082,9 +3080,6 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
3082
3080
break stateloop ;
3083
3081
}
3084
3082
c = checkChar (buf , pos );
3085
- if (c == '\u0000' ) {
3086
- break stateloop ;
3087
- }
3088
3083
/*
3089
3084
* Unlike the definition is the spec, this state does not
3090
3085
* return a value and never requires the caller to
@@ -3110,6 +3105,7 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
3110
3105
case '\u000C' :
3111
3106
case '<' :
3112
3107
case '&' :
3108
+ case '\u0000' :
3113
3109
emitOrAppendCharRefBuf (returnState );
3114
3110
if ((returnState & DATA_AND_RCDATA_MASK ) == 0 ) {
3115
3111
cstart = pos ;
@@ -3163,9 +3159,6 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
3163
3159
break stateloop ;
3164
3160
}
3165
3161
c = checkChar (buf , pos );
3166
- if (c == '\u0000' ) {
3167
- break stateloop ;
3168
- }
3169
3162
/*
3170
3163
* The data structure is as follows:
3171
3164
*
@@ -3242,9 +3235,6 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
3242
3235
break stateloop ;
3243
3236
}
3244
3237
c = checkChar (buf , pos );
3245
- if (c == '\u0000' ) {
3246
- break stateloop ;
3247
- }
3248
3238
entCol ++;
3249
3239
/*
3250
3240
* Consume the maximum number of characters possible,
You can’t perform that action at this time.
0 commit comments