(isImplied: boolean)
| 439 | } |
| 440 | |
| 441 | private endOpenTag(isImplied: boolean) { |
| 442 | this.startIndex = this.openTagStart; |
| 443 | |
| 444 | if (this.attribs) { |
| 445 | this.cbs.onopentag?.(this.tagname, this.attribs, isImplied); |
| 446 | this.attribs = null; |
| 447 | } |
| 448 | if (this.cbs.onclosetag && this.isVoidElement(this.tagname)) { |
| 449 | this.cbs.onclosetag(this.tagname, true); |
| 450 | } |
| 451 | |
| 452 | this.tagname = ""; |
| 453 | } |
| 454 | |
| 455 | /** |
| 456 | * @param endIndex End index for the current parser event. |
no test coverage detected