MCPcopy
hub / github.com/cure53/DOMPurify / isValidAttribute

Method isValidAttribute

src/types.ts:102–102  ·  view source on GitHub ↗

* Checks if an attribute value is valid. * Uses last set config, if any. Otherwise, uses config defaults. * * @param tag Tag name of containing element. * @param attr Attribute name. * @param value Attribute value. * @returns Returns true if `value` is valid. Otherwise, returns fal

(tag: string, attr: string, value: string)

Source from the content-addressed store, hash-verified

100 * @returns Returns true if `value` is valid. Otherwise, returns false.
101 */
102 isValidAttribute(tag: string, attr: string, value: string): boolean;
103
104 /**
105 * Adds a DOMPurify hook.

Callers 1

test-suite.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected