We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e1dfb commit af16f46Copy full SHA for af16f46
src/features/runtime-checks.js
@@ -109,9 +109,20 @@ class DDGRuntimeChecks extends HTMLElement {
109
}
110
111
// Reflect all props to the new element
112
- for (const param of Object.keys(this)) {
113
- if (shouldFilterKey(this.#tagName, 'property', param)) continue
114
- el[param] = this[param]
+ const props = Object.keys(this)
+
+ // Nonce isn't enumerable so we need to add it manually
115
+ props.push('nonce')
116
117
+ for (const prop of props) {
118
+ if (shouldFilterKey(this.#tagName, 'property', prop)) continue
119
+ el[prop] = this[prop]
120
+ }
121
122
+ for (const sink of supportedSinks) {
123
+ if (this.#sinks[sink]) {
124
+ el[sink] = this.#sinks[sink]
125
126
127
128
for (const sink of supportedSinks) {
0 commit comments