MCPcopy Create free account
hub / github.com/CanadaHonk/shadow / isVoidEl

Method isVoidEl

engine/htmlparser.js:92–92  ·  view source on GitHub ↗
(name = this.currentName)

Source from the content-addressed store, hash-verified

90 const isclosing = c => c === '>' || c === '/';
91
92 const isVoidEl = (name = this.currentName) => VOID_ELEMENTS.includes(name);
93
94 input = input.replace(/<!DOCTYPE .*?>/i, '').replace(/<!--[\w\W]*?-->/g, '')
95 .replaceAll('\r\n', '\n').replaceAll('\r', '\n'); // normalize newlines

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected