(c: number)
| 677 | } |
| 678 | } |
| 679 | private handleAttrStart(c: number) { |
| 680 | if (c === CharCodes.LowerV && this.peek() === CharCodes.Dash) { |
| 681 | this.state = State.InDirName |
| 682 | this.sectionStart = this.index |
| 683 | } else if ( |
| 684 | c === CharCodes.Dot || |
| 685 | c === CharCodes.Colon || |
| 686 | c === CharCodes.At || |
| 687 | c === CharCodes.Number |
| 688 | ) { |
| 689 | this.cbs.ondirname(this.index, this.index + 1) |
| 690 | this.state = State.InDirArg |
| 691 | this.sectionStart = this.index + 1 |
| 692 | } else { |
| 693 | this.state = State.InAttrName |
| 694 | this.sectionStart = this.index |
| 695 | } |
| 696 | } |
| 697 | private stateInSelfClosingTag(c: number): void { |
| 698 | if (c === CharCodes.Gt) { |
| 699 | this.cbs.onselfclosingtag(this.index) |
no test coverage detected