MCPcopy Index your code
hub / github.com/fb55/htmlparser2 / endOpenTag

Method endOpenTag

src/Parser.ts:441–453  ·  view source on GitHub ↗
(isImplied: boolean)

Source from the content-addressed store, hash-verified

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.

Callers 2

onopentagendMethod · 0.95
closeCurrentTagMethod · 0.95

Calls 3

isVoidElementMethod · 0.95
onopentagMethod · 0.80
onclosetagMethod · 0.65

Tested by

no test coverage detected