(c: number)
| 777 | this.stateAfterAttrName(c) |
| 778 | } |
| 779 | private stateAfterAttrName(c: number): void { |
| 780 | if (c === CharCodes.Eq) { |
| 781 | this.state = State.BeforeAttrValue |
| 782 | } else if (c === CharCodes.Slash || c === CharCodes.Gt) { |
| 783 | this.cbs.onattribend(QuoteType.NoValue, this.sectionStart) |
| 784 | this.sectionStart = -1 |
| 785 | this.state = State.BeforeAttrName |
| 786 | this.stateBeforeAttrName(c) |
| 787 | } else if (!isWhitespace(c)) { |
| 788 | this.cbs.onattribend(QuoteType.NoValue, this.sectionStart) |
| 789 | this.handleAttrStart(c) |
| 790 | } |
| 791 | } |
| 792 | private stateBeforeAttrValue(c: number): void { |
| 793 | if (c === CharCodes.DoubleQuote) { |
| 794 | this.state = State.InAttrValueDq |
no test coverage detected