MCPcopy
hub / github.com/inikulin/parse5 / emitCurrentDoctype

Method emitCurrentDoctype

packages/parse5/lib/tokenizer/index.ts:505–510  ·  view source on GitHub ↗
(ct: DoctypeToken)

Source from the content-addressed store, hash-verified

503 }
504
505 protected emitCurrentDoctype(ct: DoctypeToken): void {
506 this.prepareToken(ct);
507 this.handler.onDoctype(ct);
508
509 this.preprocessor.dropParsedChunk();
510 }
511
512 protected _emitCurrentCharacterToken(nextLocation: Location | null): void {
513 if (this.currentCharacterToken) {

Calls 3

prepareTokenMethod · 0.95
dropParsedChunkMethod · 0.80
onDoctypeMethod · 0.65

Tested by

no test coverage detected