Skip to content
Discussion options

You must be logged in to vote

Hi,

I think the empty string behavior you describe is because of spec compliance, and it is done by the browser:

Elements that have a nonce content attribute ensure that the cryptographic nonce is only exposed to script (and not to side-channels like CSS attribute selectors) by taking the value from the content attribute, moving it into an internal slot named [[CryptographicNonce]], exposing it to script via the HTMLOrSVGElement interface mixin, and setting the content attribute to the empty string. Unless otherwise specified, the slot's value is the empty string.

This is why you can see it ser…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@gaetan-welow
Comment options

Comment options

You must be logged in to vote
2 replies
@icyJoseph
Comment options

@gaetan-welow
Comment options

Answer selected by gaetan-welow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants