Bug 601604 - Emit ]] or ] when ]]EOF or ]EOF appears in a CDATA section in text/html. rs=jonas, a=jst.

This commit is contained in:
Henri Sivonen
2010-10-07 10:27:16 +03:00
parent 38dff51029
commit 0c29bea23f
4 changed files with 36 additions and 11 deletions

View File

@@ -6471,6 +6471,12 @@ public class Tokenizer implements Locator {
handleNcrValue(returnState);
state = returnState;
continue;
case CDATA_RSQB:
tokenHandler.characters(Tokenizer.RSQB_RSQB, 0, 1);
break eofloop;
case CDATA_RSQB_RSQB:
tokenHandler.characters(Tokenizer.RSQB_RSQB, 0, 2);
break eofloop;
case DATA:
default:
break eofloop;