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

Method documentWrite

packages/parse5-parser-stream/lib/index.ts:70–74  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

68 };
69
70 const documentWrite = (html: string): void => {
71 if (!this.parser.stopped) {
72 this.pendingHtmlInsertions.push(html);
73 }
74 };
75
76 const scriptHandler = (scriptElement: T['element']): void => {
77 if (this.listenerCount('script') > 0) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected