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

Function _basicCustomElementTest

src/purify.js:1162–1164  ·  view source on GitHub ↗
(tagName)

Source from the content-addressed store, hash-verified

1160 * @param {string} tagName name of the tag of the node to sanitize
1161 */
1162 const _basicCustomElementTest = function (tagName) {
1163 return tagName.indexOf('-') > 0;
1164 };
1165
1166 /**
1167 * _sanitizeAttributes

Callers 2

_sanitizeElementsFunction · 0.85
_isValidAttributeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected