MathMLElement: nonce property

Baseline 2026
Newly available

Since June 2026, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

The nonce property of the MathMLElement interface returns the nonce that is used by Content Security Policy to determine whether a given fetch will be allowed to proceed.

Value

A String; the cryptographic nonce, or an empty string if no nonce is set.

Examples

Retrieving a nonce value

js
const math = document.querySelector("math");
console.log(math.nonce);

Specifications

Specification
HTML
# dom-noncedelement-nonce

Browser compatibility

See also