MCPcopy Create free account
hub / github.com/cure53/DOMPurify / _readNodeType

Function _readNodeType

src/purify.ts:298–300  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

296 Node.prototype. Sites that need a different fallback (e.g. _isClobbered
297 returns early on a null name) intentionally keep their own reads. */
298 const _readNodeType = function (node: Node): number {
299 return getNodeType ? getNodeType(node) : (node as any).nodeType;
300 };
301
302 const _readNodeName = function (node: Node): string {
303 return getNodeName ? getNodeName(node) : (node as any).nodeName;

Callers 5

_neutralizeSubtreeFunction · 0.85
_neutralizePatchLinkageFunction · 0.85
_sanitizeElementsFunction · 0.85
_sanitizeShadowDOMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected