aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlscriptelement.rs
diff options
context:
space:
mode:
authorTim van der Lippe <TimvdLippe@users.noreply.github.com>2025-05-14 12:21:21 +0200
committerGitHub <noreply@github.com>2025-05-14 10:21:21 +0000
commita24fce3ae772cd2d16218545e3f584e30ea71533 (patch)
tree8912cb23758786996b4fb287706433523f0f00c7 /components/script/dom/htmlscriptelement.rs
parent3aff272e147698fa878f7ec660a19d0762fa35af (diff)
downloadservo-a24fce3ae772cd2d16218545e3f584e30ea71533.tar.gz
servo-a24fce3ae772cd2d16218545e3f584e30ea71533.zip
Implement inner slot for cryptographic nonce (#36965)
Also update the `html/dom/reflection-metadata.html` test to handle the case where `nonce` does not reflect back to the attribute after an IDL change. Part of https://github.com/servo/servo/issues/4577 Fixes https://github.com/web-platform-tests/wpt/issues/43286 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
-rw-r--r--components/script/dom/htmlscriptelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs
index 4ee1397b4ed..d1b3cfd3467 100644
--- a/components/script/dom/htmlscriptelement.rs
+++ b/components/script/dom/htmlscriptelement.rs
@@ -781,7 +781,7 @@ impl HTMLScriptElement {
};
// Step 24. Let cryptographic nonce be el's [[CryptographicNonce]] internal slot's value.
- let cryptographic_nonce = self.upcast::<HTMLElement>().Nonce().into();
+ let cryptographic_nonce = self.upcast::<Element>().nonce_value();
// Step 25. If el has an integrity attribute, then let integrity metadata be that attribute's value.
// Otherwise, let integrity metadata be the empty string.