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

Method isVoidElement

src/Parser.ts:345–347  ·  view source on GitHub ↗

* Checks if the current tag is a void element. Override this if you want * to specify your own additional void elements. * @param name Name of the pseudo selector.

(name: string)

Source from the content-addressed store, hash-verified

343 * @param name Name of the pseudo selector.
344 */
345 protected isVoidElement(name: string): boolean {
346 return this.htmlMode && voidElements.has(name);
347 }
348
349 /**
350 * Read a tag name from the buffer.

Callers 3

emitOpenTagMethod · 0.95
endOpenTagMethod · 0.95
onclosetagMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected