(c: number)
| 402 | public currentSequence: Uint8Array = undefined! |
| 403 | private sequenceIndex = 0 |
| 404 | private stateSpecialStartSequence(c: number): void { |
| 405 | const isEnd = this.sequenceIndex === this.currentSequence.length |
| 406 | const isMatch = isEnd |
| 407 | ? // If we are at the end of the sequence, make sure the tag name has ended |
| 408 | isEndOfTagSection(c) |
| 409 | : // Otherwise, do a case-insensitive comparison |
| 410 | (c | 0x20) === this.currentSequence[this.sequenceIndex] |
| 411 | |
| 412 | if (!isMatch) { |
| 413 | this.inRCDATA = false |
| 414 | } else if (!isEnd) { |
| 415 | this.sequenceIndex++ |
| 416 | return |
| 417 | } |
| 418 | |
| 419 | this.sequenceIndex = 0 |
| 420 | this.state = State.InTagName |
| 421 | this.stateInTagName(c) |
| 422 | } |
| 423 | |
| 424 | /** Look for an end tag. For <title> and <textarea>, also decode entities. */ |
| 425 | private stateInRCDATA(c: number): void { |
no test coverage detected