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

Function _readNodeType

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

Source from the content-addressed store, hash-verified

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

Callers 13

_readAttributesFunction · 0.85
_checkValidNamespaceFunction · 0.85
_neutralizeRootFunction · 0.85
_walkTreeFunction · 0.85
_neutralizeSubtreeFunction · 0.85
_sanitizeUnvisitedNodesFunction · 0.85
_neutralizePatchLinkageFunction · 0.85
_fosterTableContentFunction · 0.85
_scrubOwnCharacterDataFunction · 0.85
_sanitizeElementsFunction · 0.85
_sanitizeShadowDOMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected