Bug 570309 - Experimentally make -- > not terminate a comment in HTML. r=jonas.
This commit is contained in:
@@ -2661,28 +2661,14 @@ public class Tokenizer implements Locator {
|
||||
* Stay in the comment end state.
|
||||
*/
|
||||
continue;
|
||||
case ' ':
|
||||
case '\t':
|
||||
case '\u000C':
|
||||
/*
|
||||
* Parse error. Append two U+002D HYPHEN-MINUS
|
||||
* (-) characters and the input character to the
|
||||
* comment token's data. Switch to the comment
|
||||
* end space state.
|
||||
*/
|
||||
adjustDoubleHyphenAndAppendToLongStrBufAndErr(c);
|
||||
state = Tokenizer.COMMENT_END_SPACE;
|
||||
break commentendloop;
|
||||
// continue stateloop;
|
||||
case '\r':
|
||||
adjustDoubleHyphenAndAppendToLongStrBufCarriageReturn();
|
||||
state = Tokenizer.COMMENT_END_SPACE;
|
||||
state = Tokenizer.COMMENT;
|
||||
break stateloop;
|
||||
case '\n':
|
||||
adjustDoubleHyphenAndAppendToLongStrBufLineFeed();
|
||||
state = Tokenizer.COMMENT_END_SPACE;
|
||||
break commentendloop;
|
||||
// continue stateloop;
|
||||
state = Tokenizer.COMMENT;
|
||||
continue stateloop;
|
||||
case '!':
|
||||
errHyphenHyphenBang();
|
||||
appendLongStrBuf(c);
|
||||
|
||||
Reference in New Issue
Block a user