diff --git a/src/Tokenizer.ts b/src/Tokenizer.ts index 6374a8d05..6b5182f9d 100644 --- a/src/Tokenizer.ts +++ b/src/Tokenizer.ts @@ -129,14 +129,12 @@ export interface Callbacks { * sequences with an increased offset. */ const Sequences = { - Cdata: new Uint16Array([0x43, 0x44, 0x41, 0x54, 0x41, 0x5b]), // CDATA[ - CdataEnd: new Uint16Array([0x5d, 0x5d, 0x3e]), // ]]> - CommentEnd: new Uint16Array([0x2d, 0x2d, 0x3e]), // `-->` - ScriptEnd: new Uint16Array([ - 0x3c, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - ]), // ` + CommentEnd: new Uint8Array([0x2d, 0x2d, 0x3e]), // `-->` + ScriptEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74]), // `