MCPcopy Create free account
hub / github.com/cure53/dompurify / _isBasicCustomElement

Function _isBasicCustomElement

src/purify.ts:1257–1259  ·  view source on GitHub ↗
(tagName: string)

Source from the content-addressed store, hash-verified

1255 * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
1256 */
1257 const _isBasicCustomElement = function (tagName: string): RegExpMatchArray {
1258 return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
1259 };
1260
1261 /**
1262 * _sanitizeAttributes

Callers 2

_sanitizeElementsFunction · 0.85
_isValidAttributeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected